summaryrefslogtreecommitdiffstats
path: root/pylock.py
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-01-28 14:31:07 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-01-28 14:31:07 +0100
commite342d5c7241cd04352948fb6937e05a98000b70c (patch)
tree4a8cdf8e6d4c8863026b310d8b6dda9188ba475c /pylock.py
parent76532c49651a372a25010bc7f7f8b60eeebefdfd (diff)
downloadpylock-e342d5c7241cd04352948fb6937e05a98000b70c.tar
pylock-e342d5c7241cd04352948fb6937e05a98000b70c.zip
Handle failed device grabs and retry lock
Diffstat (limited to 'pylock.py')
-rw-r--r--pylock.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pylock.py b/pylock.py
index 159b7d2..be8e901 100644
--- a/pylock.py
+++ b/pylock.py
@@ -91,7 +91,7 @@ if not Message.acquireSelection(window):
def lock(timeLeft):
window.updateLockMessage(args.username, timeLeft)
- window.lock()
+ return window.lock()
def logout():
try: