Stop logout timer after unlock

This commit is contained in:
Matthias Schiffer 2012-06-18 12:00:12 +02:00
parent 478a9293b7
commit 115b2257a5

View file

@ -54,6 +54,9 @@ class Locker(object):
return True return True
def _checkLogout(self): def _checkLogout(self):
if not self.locked:
return False
self.currentLogoutTimeout = self.currentLogoutTimeout - 1 self.currentLogoutTimeout = self.currentLogoutTimeout - 1
if self.updateLogoutTimeout is not None: if self.updateLogoutTimeout is not None:
self.updateLogoutTimeout(self.currentLogoutTimeout) self.updateLogoutTimeout(self.currentLogoutTimeout)