Handle rare bug when download is not deleted from download_dict on error

Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
This commit is contained in:
lzzy12 2020-03-30 17:46:56 +05:30
parent 52e8fbec11
commit 136924ffd4

View File

@ -64,6 +64,7 @@ class AriaDownloadStatus(Status):
status = MirrorStatus.STATUS_CANCELLED
elif download.has_failed:
status = MirrorStatus.STATUS_FAILED
self._listener.onDownloadError('Unknown Error')
else:
status = MirrorStatus.STATUS_DOWNLOADING
return status