mirror of
https://github.com/onionshare/onionshare.git
synced 2025-12-10 05:56:37 -05:00
Properly set the web 'done' state to True on loading the directory listing
This commit is contained in:
parent
795f63f7d6
commit
32672077d0
2 changed files with 14 additions and 6 deletions
|
|
@ -515,7 +515,7 @@ def main(cwd=None):
|
|||
if not app.autostop_timer_thread.is_alive():
|
||||
if mode == "share":
|
||||
# If there were no attempts to download the share, or all downloads are done, we can stop
|
||||
if web.share_mode.cur_history_id == 0 or web.done:
|
||||
if not web.share_mode.download_in_progress or web.share_mode.cur_history_id == 0 or web.done:
|
||||
print("Stopped because auto-stop timer ran out")
|
||||
web.stop(app.port)
|
||||
break
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue