[gnome-shell/gnome-40] loginDialog: Fix timing issue



commit ea73bc8ef7a4c736a48d0dbd0c31537c9112fb0f
Author: Naïm Favier <n monade li>
Date:   Tue Jan 18 23:46:57 2022 +0100

    loginDialog: Fix timing issue
    
    Fix the first task of the timed login batch not returning the hold on
    `_waitForItemForUser`.
    
    (cherry picked from commit 3de418ea3b40a855b38580e43de3b30fe5528877)
    
    Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2181>

 js/gdm/loginDialog.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/js/gdm/loginDialog.js b/js/gdm/loginDialog.js
index d2a82b43d1..241721ff7c 100644
--- a/js/gdm/loginDialog.js
+++ b/js/gdm/loginDialog.js
@@ -1054,9 +1054,10 @@ var LoginDialog = GObject.registerClass({
         let tasks = [
             () => {
                 if (this._disableUserList)
-                    return;
+                    return null;
 
                 this._timedLoginUserListHold = this._waitForItemForUser(userName);
+                return this._timedLoginUserListHold;
             },
 
             () => {


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