Properly set the web 'done' state to True on loading the directory listing

This commit is contained in:
Miguel Jacq 2025-02-13 12:17:42 +11:00
parent 795f63f7d6
commit 32672077d0
No known key found for this signature in database
GPG key ID: 59B3F0C24135C6A9
2 changed files with 14 additions and 6 deletions

View file

@ -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