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.
This commit is contained in:
dordsor21 2021-01-05 16:42:53 +00:00
parent 89cc2f9d9f
commit 6db588a19f
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B

View File

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