[gnome-shell/benzea/fix-password-login-after-bg-failure: 1/5] authPrompt: Don't clear querying service unless querying service fails




commit b9b8019696c432d4e92b1a506ab90d302e9491c6
Author: Ray Strode <rstrode redhat com>
Date:   Wed Apr 28 10:36:46 2021 -0400

    authPrompt: Don't clear querying service unless querying service fails
    
    At the moment we treat a failure in any service as a signal to stop
    tracking users responses to service questions.
    
    This commit makes sure we don't stop waiting for answers if a background
    service fails.

 js/gdm/authPrompt.js | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/js/gdm/authPrompt.js b/js/gdm/authPrompt.js
index d2c9a16594..c182d74318 100644
--- a/js/gdm/authPrompt.js
+++ b/js/gdm/authPrompt.js
@@ -280,8 +280,11 @@ var AuthPrompt = GObject.registerClass({
 
     _onVerificationFailed(userVerifier, serviceName, canRetry) {
         const wasQueryingService = this._queryingService === serviceName;
-        this._queryingService = null;
-        this.clear();
+
+        if (wasQueryingService) {
+            this._queryingService = null;
+            this.clear();
+        }
 
         this.updateSensitivity(canRetry);
         this.setActorInDefaultButtonWell(null);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]