From fec745ffb816fb9ca1ac9b7776f4e785826982bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Mon, 25 Jan 2021 12:12:44 +0100 Subject: [PATCH] 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: --- js/ui/screenshot.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/ui/screenshot.js b/js/ui/screenshot.js index 05120e1a2..8a92c6213 100644 --- a/js/ui/screenshot.js +++ b/js/ui/screenshot.js @@ -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]; }