Fix pylock using 100% CPU when the lock is active

This commit is contained in:
Matthias Schiffer 2013-04-18 14:24:28 +02:00
parent b26615eaa1
commit 0164d236e8

View file

@ -58,7 +58,7 @@ class Locker(object):
if self.currentLogoutTimeout > 0: if self.currentLogoutTimeout > 0:
GLib.timeout_add_seconds(1, self._checkLogout) GLib.timeout_add_seconds(1, self._checkLogout)
return True return False
def unlock(self): def unlock(self):
if self.locked: if self.locked: