mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-11-17 07:45:09 +01:00
Properly shutdown ExecutorService
This commit is contained in:
parent
013a21159f
commit
05ebe2d054
@ -308,6 +308,7 @@ public class ChestShop extends JavaPlugin {
|
||||
}
|
||||
|
||||
public void onDisable() {
|
||||
executorService.shutdown();
|
||||
try {
|
||||
executorService.awaitTermination(15, TimeUnit.SECONDS);
|
||||
} catch (InterruptedException ignored) {}
|
||||
|
Loading…
Reference in New Issue
Block a user