fix cleaning up of hopeless downloads in plugin

pull/53/head
Zlatin Balevsky 2020-09-23 15:23:51 +01:00
parent c11a427483
commit f4e0c707df
No known key found for this signature in database
GPG Key ID: A72832072D525E41
1 changed files with 2 additions and 1 deletions

View File

@ -63,7 +63,8 @@ public class DownloadManager {
Map.Entry<InfoHash, Downloader> entry = iter.next();
Downloader.DownloadState state = entry.getValue().getCurrentState();
if (state == Downloader.DownloadState.CANCELLED ||
state == Downloader.DownloadState.FINISHED)
state == Downloader.DownloadState.FINISHED ||
state == Downloader.DownloadState.HOPELESS)
iter.remove();
}
}