[gnome-shell/wip/wayland-gdm-cleanup: 8/19] gdm: Don't bother passing a Hold through to the authPrompt



commit 97e0175f48ed3a3d3d1c5f34ef35e29744d75428
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Fri Mar 7 15:53:47 2014 -0500

    gdm: Don't bother passing a Hold through to the authPrompt
    
    beginVerificationForUser is always the last task in the last, so it
    doesn't matter when it's released.

 js/gdm/loginDialog.js |   10 +++-------
 1 files changed, 3 insertions(+), 7 deletions(-)
---
diff --git a/js/gdm/loginDialog.js b/js/gdm/loginDialog.js
index 6e3cb97..99c3030 100644
--- a/js/gdm/loginDialog.js
+++ b/js/gdm/loginDialog.js
@@ -823,11 +823,7 @@ const LoginDialog = new Lang.Class({
         this._authPrompt.setUser(item.user);
 
         let userName = item.user.get_user_name();
-        let hold = new Batch.Hold();
-
-        this._authPrompt.begin({ userName: userName,
-                                 hold: hold });
-        return hold;
+        this._authPrompt.begin({ userName: userName });
     },
 
     _onUserListActivated: function(activatedItem) {
@@ -842,9 +838,9 @@ const LoginDialog = new Lang.Class({
 
         this._updateCancelButton();
 
-        let batch = new Batch.ConcurrentBatch(this, [new Batch.ConsecutiveBatch(this, tasks),
-                                                     this._beginVerificationForItem(activatedItem)]);
+        let batch = new Batch.ConsecutiveBatch(this, tasks);
         batch.run();
+        this._beginVerificationForItem(activatedItem);
     },
 
     _onDestroy: function() {


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