fix cleaning up of hopeless downloads in plugin
This commit is contained in:
@@ -63,7 +63,8 @@ public class DownloadManager {
|
|||||||
Map.Entry<InfoHash, Downloader> entry = iter.next();
|
Map.Entry<InfoHash, Downloader> entry = iter.next();
|
||||||
Downloader.DownloadState state = entry.getValue().getCurrentState();
|
Downloader.DownloadState state = entry.getValue().getCurrentState();
|
||||||
if (state == Downloader.DownloadState.CANCELLED ||
|
if (state == Downloader.DownloadState.CANCELLED ||
|
||||||
state == Downloader.DownloadState.FINISHED)
|
state == Downloader.DownloadState.FINISHED ||
|
||||||
|
state == Downloader.DownloadState.HOPELESS)
|
||||||
iter.remove();
|
iter.remove();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user