Fix download queue bug

This commit is contained in:
death-claw
2021-05-29 10:30:18 +01:00
parent 816fb84549
commit 47f1705abb
@@ -194,7 +194,7 @@ public class DownloadService {
Integer maxPerHost = candidateCount.get(host);
if (maxPerHost > 0 && i < max) {
candidates.add(downloadJob);
candidateCount.put(host, maxPerHost + 1);
candidateCount.put(host, maxPerHost - 1);
i++;
}
if (i >= max) {