Don't allow FAWE to "deadlock" itself when post-processing history by switching to the primary ForkJoinPool

- With enough chunks waiting to write to history, it's possible to fill the secondary fork pool up with locked threads, and thus prevent any threads from actually writing their history.
Dieser Commit ist enthalten in:
dordsor21 2021-01-05 16:42:53 +00:00
Ursprung 89cc2f9d9f
Commit 6db588a19f
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 1E53E88969FFCF0B

Datei anzeigen

@ -351,7 +351,7 @@ public abstract class AbstractChangeSet implements ChangeSet, IBatchProcessor {
wrappedTask.run(); wrappedTask.run();
return Futures.immediateCancelledFuture(); return Futures.immediateCancelledFuture();
} else { } else {
return Fawe.get().getQueueHandler().async(wrappedTask); return Fawe.get().getQueueHandler().submit(wrappedTask);
} }
} }
} }