mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-01-12 02:34:00 +00:00
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:
parent
89cc2f9d9f
commit
6db588a19f
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user