[gnome-shell/benzea/fix-password-login-after-bg-failure] gdm: Only reset for foreground service failures
- From: Benjamin Berg <bberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/benzea/fix-password-login-after-bg-failure] gdm: Only reset for foreground service failures
- Date: Wed, 28 Apr 2021 13:50:37 +0000 (UTC)
commit 0e72f976639f9e957495c884a36d152af5fcd8d8
Author: Benjamin Berg <bberg redhat com>
Date: Wed Apr 28 14:22:05 2021 +0200
gdm: Only reset for foreground service failures
Retries are service specific and can always be done. However, a reset
works on all services and as such should only happen for the foreground
service.
If a background service fails in a non-retryable way then just give up
on it until the user cancels the operation manually (or the foreground
service fails).
js/gdm/util.js | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/js/gdm/util.js b/js/gdm/util.js
index 50a8923e60..c73c9b2a28 100644
--- a/js/gdm/util.js
+++ b/js/gdm/util.js
@@ -708,7 +708,9 @@ var ShellUserVerifier = class {
this._retry(serviceName);
});
}
- } else {
+ } else if (this.serviceIsForeground(serviceName)) {
+ // We only cancel-and-reset for the foreground service!
+
// eslint-disable-next-line no-lonely-if
if (!this.hasPendingMessages) {
this._cancelAndReset();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]