reset done to False if a download is still in progress

This commit is contained in:
Miguel Jacq 2018-02-19 12:47:21 +11:00
parent d1ce17cf5f
commit 6791e59aa5
No known key found for this signature in database
GPG Key ID: EEA4341C6D97A0B6

View File

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