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: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2258>
This commit is contained in:
parent
ef2136877f
commit
8ba7f0f4a9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user