[FIX] Return shuffle in AsyncDownloader

This commit is contained in:
Gravita 2021-05-07 16:05:56 +07:00
parent 43c45f6990
commit 9f8cd7070c

View file

@ -116,6 +116,9 @@ public List<List<SizedFile>> sortFiles(List<SizedFile> files, int threads) {
result.get(minIndex).add(file);
sizes[minIndex] += file.size;
}
for(List<AsyncDownloader.SizedFile> list : result) {
Collections.shuffle(list);
}
return result;
}