mirror of
https://github.com/onionshare/onionshare.git
synced 2025-08-02 03:16:19 -04:00
reset done to False if a download is still in progress
This commit is contained in:
parent
ffdbf8dec1
commit
b398d238d2
1 changed files with 1 additions and 0 deletions
|
@ -305,6 +305,7 @@ def download(slug_candidate):
|
||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
|
|
||||||
add_request(REQUEST_PROGRESS, path, {'id': download_id, 'bytes': downloaded_bytes})
|
add_request(REQUEST_PROGRESS, path, {'id': download_id, 'bytes': downloaded_bytes})
|
||||||
|
done = False
|
||||||
except:
|
except:
|
||||||
# looks like the download was canceled
|
# looks like the download was canceled
|
||||||
done = True
|
done = True
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue