From c67ea8e771512fb3a76dc5eea1c268bf615d5422 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Wed, 11 Sep 2024 00:22:57 +0200 Subject: [PATCH] gdm: Actually wait for pending messages being notified on failures We had code to ensure that all the queued messages sent by a PAM module were shown by waiting some time to give the user time to read them, but due to a typo this code never executed. Fixes commit dd97a2589b8b686f273550f3e9e6ce370b25c10d Part-of: --- js/gdm/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/gdm/util.js b/js/gdm/util.js index cbb99b1a3..1e0154f36 100644 --- a/js/gdm/util.js +++ b/js/gdm/util.js @@ -862,7 +862,7 @@ export class ShellUserVerifier extends Signals.EventEmitter { } _handlePendingMessages() { - if (!this.hasPendingMessage) + if (!this.hasPendingMessages) return Promise.resolve(); const cancellable = this._cancellable;