[gnome-shell] loginManager: Fix canSuspend in non-logind path



commit 1bf996c705cc1f68ba11ec3ed5409f8292759c23
Author: Florian MÃllner <fmuellner gnome org>
Date:   Fri Feb 8 08:38:36 2013 +0100

    loginManager: Fix canSuspend in non-logind path
    
    It is supposed to be a NOP, but commit b91d9c28679 got it wrong.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=693162

 js/misc/loginManager.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/misc/loginManager.js b/js/misc/loginManager.js
index 6d9316a..68d3d46 100644
--- a/js/misc/loginManager.js
+++ b/js/misc/loginManager.js
@@ -222,7 +222,7 @@ const LoginManagerConsoleKit = new Lang.Class({
     },
 
     canSuspend: function(asyncCallback) {
-        return false;
+        asyncCallback(false);
     },
 
     powerOff: function() {


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