loginDialog: Fix timing issue

Fix the first task of the timed login batch not returning the hold on
`_waitForItemForUser`.

(cherry picked from commit 3de418ea3b)

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2180>
This commit is contained in:
Naïm Favier 2022-01-18 23:46:57 +01:00 committed by Florian Müllner
parent d06a4617cb
commit be9ca09ef0

View file

@ -1054,9 +1054,10 @@ var LoginDialog = GObject.registerClass({
let tasks = [
() => {
if (this._disableUserList)
return;
return null;
this._timedLoginUserListHold = this._waitForItemForUser(userName);
return this._timedLoginUserListHold;
},
() => {