From 8f493b4468b6e2ffd09aa9b8c2fd8fd3a2a6f0a0 Mon Sep 17 00:00:00 2001 From: Micah Lee Date: Tue, 16 Sep 2014 00:19:44 +0000 Subject: [PATCH] make Ctrl-C close the CLI version again --- onionshare/onionshare.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/onionshare/onionshare.py b/onionshare/onionshare.py index 73c5a81b..afc6a3fc 100644 --- a/onionshare/onionshare.py +++ b/onionshare/onionshare.py @@ -255,7 +255,8 @@ def main(): # wait for app to close try: - t.join() + while True: + time.sleep(0.5) except KeyboardInterrupt: web.stop(app.port) finally: