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:
Florian Müllner 2021-01-25 12:12:44 +01:00 committed by Marge Bot
parent 0efa82acf0
commit fec745ffb8

View File

@ -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];
}