mirror of
https://github.com/onionshare/onionshare.git
synced 2024-12-28 16:59:35 -05:00
Merge branch 'cli-auto-exit' of https://github.com/kkka/onionshare into kkka-cli-auto-exit
Conflicts: onionshare/onionshare.py
This commit is contained in:
commit
2cf6bd94e9
@ -254,16 +254,13 @@ def main():
|
|||||||
print strings._("ctrlc_to_stop")
|
print strings._("ctrlc_to_stop")
|
||||||
|
|
||||||
# wait for app to close
|
# wait for app to close
|
||||||
running = True
|
try:
|
||||||
while running:
|
t.join()
|
||||||
try:
|
except KeyboardInterrupt:
|
||||||
time.sleep(0.5)
|
web.stop(app.port)
|
||||||
except KeyboardInterrupt:
|
finally:
|
||||||
running = False
|
# shutdown
|
||||||
web.stop(app.port)
|
app.cleanup()
|
||||||
|
|
||||||
# shutdown
|
|
||||||
app.cleanup()
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
Loading…
Reference in New Issue
Block a user