mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-12-28 20:17:55 +01:00
Shutdown ForkJoinPool worker on disable (#3247)
This commit is contained in:
parent
65751cd56b
commit
fe80ba6cc4
@ -96,6 +96,13 @@ public abstract class AbstractJavaScheduler implements SchedulerAdapter {
|
||||
} catch (InterruptedException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
this.worker.shutdown();
|
||||
try {
|
||||
this.worker.awaitTermination(1, TimeUnit.MINUTES);
|
||||
} catch (InterruptedException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
private static final class ErrorReportingExecutor implements Executor {
|
||||
|
Loading…
Reference in New Issue
Block a user