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.
This commit is contained in:
parent
ebef4ff174
commit
97e0175f48
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user