fix cleaning up of hopeless downloads in plugin

This commit is contained in:
Zlatin Balevsky
2020-09-23 15:23:51 +01:00
parent c11a427483
commit f4e0c707df

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();
}
}