[gnome-shell/gnome-41] gdmUtil: Fix ShellUserVerifier retry logic
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gnome-41] gdmUtil: Fix ShellUserVerifier retry logic
- Date: Thu, 11 Aug 2022 13:03:54 +0000 (UTC)
commit a13817309a22b3eb46cdefef367f72673e6695ad
Author: Alessandro Bono <alessandro bono369 gmail com>
Date: Mon Aug 8 12:29:47 2022 +0200
gdmUtil: Fix ShellUserVerifier retry logic
Don't call the _retry() function if we are done trying.
Fallout from 8cfd4c969ba5e8126234585b1656d905266299dd.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2412>
(cherry picked from commit 20c84bf9a6d6c345c8c1b42cc9647d57464062be)
js/gdm/util.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/js/gdm/util.js b/js/gdm/util.js
index 29dba325fc..1fa8845849 100644
--- a/js/gdm/util.js
+++ b/js/gdm/util.js
@@ -702,10 +702,10 @@ var ShellUserVerifier = class {
this._disconnectSignals();
await this._handlePendingMessages();
this._cancelAndReset();
+ } else {
+ await this._handlePendingMessages();
+ this._retry(serviceName);
}
-
- await this._handlePendingMessages();
- this._retry(serviceName);
} catch (e) {
if (!e.matches(Gio.IOErrorEnum, Gio.IOErrorEnum.CANCELLED))
logError(e);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]