Properly shutdown ExecutorService

This commit is contained in:
Phoenix616 2023-03-29 16:54:10 +01:00
parent 013a21159f
commit 05ebe2d054
No known key found for this signature in database
GPG Key ID: 40E2321E71738EB0
1 changed files with 1 additions and 0 deletions

View File

@ -308,6 +308,7 @@ public class ChestShop extends JavaPlugin {
}
public void onDisable() {
executorService.shutdown();
try {
executorService.awaitTermination(15, TimeUnit.SECONDS);
} catch (InterruptedException ignored) {}