gdmUtil: Fix ShellUserVerifier retry logic

Don't call the _retry() function if we are done trying.

Fallout from 8cfd4c969b.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2412>
This commit is contained in:
Alessandro Bono 2022-08-08 12:29:47 +02:00 committed by Marge Bot
parent dd97a2589b
commit 20c84bf9a6

View File

@ -719,10 +719,10 @@ var ShellUserVerifier = class extends Signals.EventEmitter {
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);