From eb73047d14193f757220ad365b1acadbdcf88fcc Mon Sep 17 00:00:00 2001 From: Govindas Date: Sat, 30 May 2020 10:11:43 +0300 Subject: [PATCH] Remove awaitTermination as it was preventing shutdown sometimes --- src/main/java/net/limework/skLimework/AddonPlugin.java | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main/java/net/limework/skLimework/AddonPlugin.java b/src/main/java/net/limework/skLimework/AddonPlugin.java index 193fb3c..868ca37 100644 --- a/src/main/java/net/limework/skLimework/AddonPlugin.java +++ b/src/main/java/net/limework/skLimework/AddonPlugin.java @@ -138,7 +138,6 @@ public class AddonPlugin extends JavaPlugin { public void onDisable(){ redisSub.shutdown(); service.shutdown(); - try { service.awaitTermination(3, TimeUnit.SECONDS); } catch (InterruptedException e) { e.printStackTrace(); } jedisPool.close(); }