Merge branch 'kkka-cli-auto-exit'

This commit is contained in:
Micah Lee 2014-09-15 18:44:54 +00:00
commit 5a5f1f0480

View File

@ -254,14 +254,11 @@ def main():
print strings._("ctrlc_to_stop")
# wait for app to close
running = True
while running:
try:
time.sleep(0.5)
t.join()
except KeyboardInterrupt:
running = False
web.stop(app.port)
finally:
# shutdown
app.cleanup()