Use ForkJoinPool instead of bukkit scheduler
As the ForkJoinPool will better manage threads so they don't get exhausted.
This commit is contained in:
parent
11f4c77883
commit
18d0ece516
|
@ -360,7 +360,7 @@ public abstract class FaweChangeSet implements ChangeSet {
|
||||||
if (mainThread) {
|
if (mainThread) {
|
||||||
run.run();
|
run.run();
|
||||||
} else {
|
} else {
|
||||||
TaskManager.IMP.async(run);
|
TaskManager.IMP.getPublicForkJoinPool().submit(run);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue