mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 00:51:01 +03:00
[FIX] Return shuffle in AsyncDownloader
This commit is contained in:
parent
43c45f6990
commit
9f8cd7070c
1 changed files with 3 additions and 0 deletions
|
@ -116,6 +116,9 @@ public List<List<SizedFile>> sortFiles(List<SizedFile> files, int threads) {
|
||||||
result.get(minIndex).add(file);
|
result.get(minIndex).add(file);
|
||||||
sizes[minIndex] += file.size;
|
sizes[minIndex] += file.size;
|
||||||
}
|
}
|
||||||
|
for(List<AsyncDownloader.SizedFile> list : result) {
|
||||||
|
Collections.shuffle(list);
|
||||||
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue