mirror of
https://github.com/onionshare/onionshare.git
synced 2024-12-28 00:39:37 -05:00
Allow website mode to stop even if people have viewed it
This commit is contained in:
parent
f5e4d70731
commit
80e7316249
@ -464,13 +464,7 @@ def main(cwd=None):
|
||||
print("Stopped because auto-stop timer ran out")
|
||||
web.stop(app.port)
|
||||
break
|
||||
if mode == "website":
|
||||
# If there were no attempts to visit the website, or all downloads are done, we can stop
|
||||
if web.website_mode.cur_history_id == 0 or web.done:
|
||||
print("Stopped because auto-stop timer ran out")
|
||||
web.stop(app.port)
|
||||
break
|
||||
if mode == "receive":
|
||||
elif mode == "receive":
|
||||
if (
|
||||
web.receive_mode.cur_history_id == 0
|
||||
or not web.receive_mode.uploads_in_progress
|
||||
@ -479,7 +473,8 @@ def main(cwd=None):
|
||||
web.stop(app.port)
|
||||
break
|
||||
web.receive_mode.can_upload = False
|
||||
if mode == "chat":
|
||||
else:
|
||||
# website or chat mode
|
||||
print("Stopped because auto-stop timer ran out")
|
||||
web.stop(app.port)
|
||||
break
|
||||
|
Loading…
Reference in New Issue
Block a user