mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2025-01-17 05:41:35 +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) {
|
} catch (InterruptedException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.worker.shutdown();
|
||||||
|
try {
|
||||||
|
this.worker.awaitTermination(1, TimeUnit.MINUTES);
|
||||||
|
} catch (InterruptedException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static final class ErrorReportingExecutor implements Executor {
|
private static final class ErrorReportingExecutor implements Executor {
|
||||||
|
Loading…
Reference in New Issue
Block a user