make Ctrl-C close the CLI version again

This commit is contained in:
Micah Lee 2014-09-16 00:19:44 +00:00
parent 8514f74b1c
commit 8f493b4468

View File

@ -255,7 +255,8 @@ def main():
# wait for app to close # wait for app to close
try: try:
t.join() while True:
time.sleep(0.5)
except KeyboardInterrupt: except KeyboardInterrupt:
web.stop(app.port) web.stop(app.port)
finally: finally: