Remove awaitTermination as it was preventing shutdown sometimes

This commit is contained in:
Govindass 2020-05-30 10:11:43 +03:00
parent 13502b818d
commit 4f79fc29b7

View File

@ -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();
}