mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-11 10:58:57 +01:00
Ensured Processing ExecutorServices shut down
This commit is contained in:
parent
76040c1177
commit
e525e0c5db
@ -143,6 +143,16 @@ public class Processing implements SubSystem {
|
||||
Log.toLog(this.getClass(), e);
|
||||
}
|
||||
}
|
||||
if (!nonCriticalExecutor.isTerminated()) {
|
||||
try {
|
||||
nonCriticalExecutor.awaitTermination(1, TimeUnit.SECONDS);
|
||||
} catch (InterruptedException e) {
|
||||
nonCriticalExecutor.shutdownNow();
|
||||
}
|
||||
}
|
||||
if (!criticalExecutor.isTerminated()) {
|
||||
criticalExecutor.shutdownNow();
|
||||
}
|
||||
Log.info(locale.get().getString(PluginLang.DISABLED_PROCESSING_COMPLETE));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user