Remove awaitTermination as it was preventing shutdown sometimes

This commit is contained in:
Govindas 2020-05-30 10:11:43 +03:00
parent 9d7fbcd33b
commit eb73047d14

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