summaryrefslogtreecommitdiffstats
path: root/Locker.py
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-06-18 12:00:12 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-06-18 12:00:12 +0200
commit115b2257a506f21f7e069fdbba49ac001292d79b (patch)
tree118a65b211c013b921886cf0b056370f6227bbc0 /Locker.py
parent478a9293b7e3b2efcd64d80237a7c0f9b34e21ac (diff)
downloadpylock-115b2257a506f21f7e069fdbba49ac001292d79b.tar
pylock-115b2257a506f21f7e069fdbba49ac001292d79b.zip
Stop logout timer after unlock
Diffstat (limited to 'Locker.py')
-rw-r--r--Locker.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Locker.py b/Locker.py
index f8e97ce..fd2f5ed 100644
--- a/Locker.py
+++ b/Locker.py
@@ -54,6 +54,9 @@ class Locker(object):
return True
def _checkLogout(self):
+ if not self.locked:
+ return False
+
self.currentLogoutTimeout = self.currentLogoutTimeout - 1
if self.updateLogoutTimeout is not None:
self.updateLogoutTimeout(self.currentLogoutTimeout)