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