Remove awaitTermination as it was preventing shutdown sometimes
This commit is contained in:
parent
9d7fbcd33b
commit
eb73047d14
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user