This commit is contained in:
Govindas 2020-11-03 12:23:00 +02:00
parent f53f9dd5a2
commit ee294a4f65
2 changed files with 4 additions and 7 deletions

2
.gitignore vendored
View File

@ -1,4 +1,4 @@
target target
out out
.idea/workspace.xml .idea
compile compile

View File

@ -23,7 +23,7 @@ import java.util.concurrent.atomic.AtomicBoolean;
public class RedisManager extends BinaryJedisPubSub implements Runnable { public class RedisManager extends BinaryJedisPubSub implements Runnable {
private final ExecutorService RedisReconnector; private ExecutorService RedisReconnector;
private RediSkript plugin; private RediSkript plugin;
private JedisPool jedisPool; private JedisPool jedisPool;
@ -149,11 +149,6 @@ public class RedisManager extends BinaryJedisPubSub implements Runnable {
} }
public void shutdown() { public void shutdown() {
try {
this.RedisService.awaitTermination(1, TimeUnit.SECONDS);
} catch (InterruptedException e) {
e.printStackTrace();
}
this.isShuttingDown.set(true); this.isShuttingDown.set(true);
if (this.subscribeJedis != null) { if (this.subscribeJedis != null) {
this.unsubscribe(); this.unsubscribe();
@ -163,6 +158,8 @@ public class RedisManager extends BinaryJedisPubSub implements Runnable {
} }
this.RedisReconnector.shutdown(); this.RedisReconnector.shutdown();
this.RedisService.shutdown(); this.RedisService.shutdown();
this.RedisService = null;
this.RedisReconnector = null;
} }
public void reload() { public void reload() {