9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-28 19:49:06 +00:00

Allow onion bursting for post mantle jobs

This commit is contained in:
cyberpwn
2021-08-18 00:39:16 -04:00
parent b71a87e803
commit 851053fd9a
2 changed files with 16 additions and 4 deletions

View File

@@ -45,7 +45,7 @@ public class BurstExecutor {
public BurstExecutor queue(List<Runnable> r) {
synchronized (futures) {
for (Runnable i : r) {
for (Runnable i : new KList<>(r)) {
CompletableFuture<Void> c = CompletableFuture.runAsync(i, executor);
futures.add(c);
}