forked from Limework/RediSkript
Remove awaitTermination as it was preventing shutdown sometimes
This commit is contained in:
parent
13502b818d
commit
4f79fc29b7
@ -138,7 +138,6 @@ public class AddonPlugin extends JavaPlugin {
|
|||||||
public void onDisable(){
|
public void onDisable(){
|
||||||
redisSub.shutdown();
|
redisSub.shutdown();
|
||||||
service.shutdown();
|
service.shutdown();
|
||||||
try { service.awaitTermination(3, TimeUnit.SECONDS); } catch (InterruptedException e) { e.printStackTrace(); }
|
|
||||||
jedisPool.close();
|
jedisPool.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user