[gnome-shell/benzea/fix-password-login-after-bg-failure] gdm: Only disconnect signals for the foreground verifier



commit 47d986b1307010207d1991a0893fae28f4266390
Author: Benjamin Berg <bberg redhat com>
Date:   Wed Apr 28 13:44:05 2021 +0200

    gdm: Only disconnect signals for the foreground verifier
    
    We want to continue verifying on the foreground verifier and possibly on
    other background services. As such, only disconnect signals when we get
    a verification failure on the foreground service.

 js/gdm/util.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/js/gdm/util.js b/js/gdm/util.js
index e7e575dba4..50a8923e60 100644
--- a/js/gdm/util.js
+++ b/js/gdm/util.js
@@ -693,7 +693,8 @@ var ShellUserVerifier = class {
 
         const canRetry = retry && this._canRetry();
 
-        this._disconnectSignals();
+        if (this.serviceIsForeground(serviceName))
+            this._disconnectSignals();
         this._filterServiceMessages(serviceName, MessageType.ERROR);
 
         if (canRetry) {


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