mirror of https://github.com/zlatinb/muwire
fix cleaning up of hopeless downloads in plugin
parent
c11a427483
commit
f4e0c707df
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue