From a56d508d6977ada57298000ce317cdee5a3a954e Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Wed, 28 Apr 2021 10:36:46 -0400 Subject: [PATCH] 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. Part-of: --- 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 de777450e..0b3da4ecb 100644 --- a/js/gdm/authPrompt.js +++ b/js/gdm/authPrompt.js @@ -321,8 +321,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);