X-Git-Url: http://git.tomasm.cz/imago.git/blobdiff_plain/2b2ac5c384ccf1294b13f4477aa3d5bb60945cfb..a0ffea12425b22e87010c097a393e9b627eb0a29:/capture.py 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