Fix pylock using 100% CPU when the lock is active
This commit is contained in:
parent
b26615eaa1
commit
0164d236e8
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Reference in a new issue