[gnome-shell/gnome-42] gdmUtil: Fix ShellUserVerifier retry logic



commit 1a2ba6adb81fbbc03a2a78e0fd5d65253bd16555
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 31c8ab84b0..a4c796b11d 100644
--- a/js/gdm/util.js
+++ b/js/gdm/util.js
@@ -719,10 +719,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]