summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2015-08-25 19:49:46 +0200
committerFlorian Jung <flo@windfisch.org>2015-08-25 19:49:46 +0200
commit0df1c5f7799fdd63c3cd3fdc92bc9ccc60d1da8f (patch)
tree6d5eb1af94357640bc12c94d2694d912fa01d281 /main.py
parent8386ae0e63313ffc5d0fefebda8451d982679e01 (diff)
clean quit
Diffstat (limited to 'main.py')
-rw-r--r--main.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.py b/main.py
index 08793d3..0cd9b30 100644
--- a/main.py
+++ b/main.py
@@ -58,7 +58,7 @@ strategy = Strategy(c)
autorespawn_counter = 60
# main loop
-while True:
+while gui.running:
c.on_message()
gui.draw_frame()
@@ -79,3 +79,5 @@ while True:
autorespawn_counter = 60
else:
autorespawn_counter-=1
+
+print("bye")