From 8ba7f0f4a902439f87c7c9c887b385f9fa85384f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Mon, 28 Mar 2022 15:25:41 +0200 Subject: [PATCH] shellDBus: Actually make ScreenTransitionAsync async We called such function async but we didn't awaited for the checkInvocation result in the proper way. So on failure the shell would report an unhandled promise rejection. Part-of: --- js/ui/shellDBus.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/ui/shellDBus.js b/js/ui/shellDBus.js index 8faa112ea..edc16eb87 100644 --- a/js/ui/shellDBus.js +++ b/js/ui/shellDBus.js @@ -253,9 +253,9 @@ var GnomeShell = class { invocation.return_value(GLib.Variant.new('(b)', [ungrabSucceeded])); } - ScreenTransitionAsync(params, invocation) { + async ScreenTransitionAsync(params, invocation) { try { - this._senderChecker.checkInvocation(invocation); + await this._senderChecker.checkInvocation(invocation); } catch (e) { invocation.return_gerror(e); return;