From 4f79fc29b7f1adc02f80a82dfda189b0b320940f Mon Sep 17 00:00:00 2001 From: Govindass 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(); }