mirror of
https://github.com/lucko/LuckPerms.git
synced 2025-09-01 02:21:43 +02:00
Shutdown ForkJoinPool worker on disable (#3247)
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user