screenshot: Clean up when creating stream failed
Otherwise the tracked screenshot operation will block all future requests from the same sender. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3618 Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1589>
This commit is contained in:
parent
0efa82acf0
commit
fec745ffb8
@ -109,6 +109,7 @@ var ScreenshotService = class {
|
||||
return [stream, file];
|
||||
} catch (e) {
|
||||
invocation.return_gerror(e);
|
||||
this._removeShooterForSender(invocation.get_sender());
|
||||
return [null, null];
|
||||
}
|
||||
}
|
||||
@ -126,6 +127,7 @@ var ScreenshotService = class {
|
||||
}
|
||||
|
||||
invocation.return_gerror(err);
|
||||
this._removeShooterForSender(invocation.get_sender());
|
||||
return [null, null];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user