[gnome-shell/wip/smartcard: 6/16] util: clear user verifier after cancelling it



commit b51f2e95d4dc64140cd28c3f09c79388a236880e
Author: Ray Strode <rstrode redhat com>
Date:   Mon Jul 29 10:52:02 2013 -0400

    util: clear user verifier after cancelling it
    
    If we don't clear it, then the connection to gdm will remain open.

 js/gdm/util.js |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/js/gdm/util.js b/js/gdm/util.js
index 1facf98..9557c66 100644
--- a/js/gdm/util.js
+++ b/js/gdm/util.js
@@ -148,8 +148,10 @@ const ShellUserVerifier = new Lang.Class({
         if (this._cancellable)
             this._cancellable.cancel();
 
-        if (this._userVerifier)
+        if (this._userVerifier) {
             this._userVerifier.call_cancel_sync(null);
+            this.clear();
+        }
     },
 
     clear: function() {


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