From: Tomas Musil Date: Sat, 8 Sep 2012 11:56:21 +0000 (+0200) Subject: minor fix X-Git-Url: http://git.tomasm.cz/imago.git/commitdiff_plain/42940b03b16e43dcf5ce8f001fce0e35f609c830?ds=inline minor fix --- diff --git a/capture.py b/capture.py index a8b6878..7f3234b 100755 --- a/capture.py +++ b/capture.py @@ -54,10 +54,11 @@ class Capture: else: if line == "stop\n": done = True + elif line == "exit\n": + sys.exit() else: for event in pygame.event.get(): if event.type == pygame.QUIT: - done = True sys.exit() elif event.type == pygame.KEYDOWN: done = True