summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian <stayawake@lavabit.com>2014-02-13 12:12:50 +0100
committerFlorian <stayawake@lavabit.com>2014-02-13 12:12:50 +0100
commit9f584daeb7330a6cc1ff4440ab86d742a34eeb82 (patch)
tree539c86ebe63607cf3beeb38ac3e11bdce9837e73
parent963b45f4c04c4da390aa9faa12e82691ffcb2237 (diff)
status_script will save statusfile and exit
-rwxr-xr-xscripts/status_script.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/status_script.py b/scripts/status_script.py
index 739cfcf..a5595ac 100755
--- a/scripts/status_script.py
+++ b/scripts/status_script.py
@@ -115,6 +115,7 @@ if __name__ == '__main__':
last_change = status_file.readline().rstrip()
except Exception:
save_statusfile(STATUSFILE, s.door_status())
+ exit()
# check if status changed, if yes, update css and tweet it
if s.door_status() != old_status: