mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04: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")
|
print("Stopped because auto-stop timer ran out")
|
||||||
web.stop(app.port)
|
web.stop(app.port)
|
||||||
break
|
break
|
||||||
if mode == "website":
|
elif mode == "receive":
|
||||||
# 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":
|
|
||||||
if (
|
if (
|
||||||
web.receive_mode.cur_history_id == 0
|
web.receive_mode.cur_history_id == 0
|
||||||
or not web.receive_mode.uploads_in_progress
|
or not web.receive_mode.uploads_in_progress
|
||||||
@ -479,7 +473,8 @@ def main(cwd=None):
|
|||||||
web.stop(app.port)
|
web.stop(app.port)
|
||||||
break
|
break
|
||||||
web.receive_mode.can_upload = False
|
web.receive_mode.can_upload = False
|
||||||
if mode == "chat":
|
else:
|
||||||
|
# website or chat mode
|
||||||
print("Stopped because auto-stop timer ran out")
|
print("Stopped because auto-stop timer ran out")
|
||||||
web.stop(app.port)
|
web.stop(app.port)
|
||||||
break
|
break
|
||||||
|
Loading…
Reference in New Issue
Block a user