diff options
author | Miguel Jacq <mig@mig5.net> | 2018-02-19 12:47:21 +1100 |
---|---|---|
committer | Miguel Jacq <mig@mig5.net> | 2018-02-19 12:47:21 +1100 |
commit | 6791e59aa57670827e273fe9294e8d1b06a870f9 (patch) | |
tree | c59539eabcc546a7087043472e6cd04b449c43a2 | |
parent | d1ce17cf5f52b8ba317fcac62df63cc0ac32c259 (diff) | |
download | onionshare-6791e59aa57670827e273fe9294e8d1b06a870f9.tar.gz onionshare-6791e59aa57670827e273fe9294e8d1b06a870f9.zip |
reset done to False if a download is still in progress
-rw-r--r-- | onionshare/web.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/onionshare/web.py b/onionshare/web.py index eec2de89..103ddb1f 100644 --- a/onionshare/web.py +++ b/onionshare/web.py @@ -305,6 +305,7 @@ def download(slug_candidate): sys.stdout.flush() add_request(REQUEST_PROGRESS, path, {'id': download_id, 'bytes': downloaded_bytes}) + done = False except: # looks like the download was canceled done = True |