forked from Limework/RediSkript
test
This commit is contained in:
parent
f53f9dd5a2
commit
ee294a4f65
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,4 +1,4 @@
|
||||
target
|
||||
out
|
||||
.idea/workspace.xml
|
||||
.idea
|
||||
compile
|
@ -23,7 +23,7 @@ import java.util.concurrent.atomic.AtomicBoolean;
|
||||
|
||||
public class RedisManager extends BinaryJedisPubSub implements Runnable {
|
||||
|
||||
private final ExecutorService RedisReconnector;
|
||||
private ExecutorService RedisReconnector;
|
||||
private RediSkript plugin;
|
||||
|
||||
private JedisPool jedisPool;
|
||||
@ -149,11 +149,6 @@ public class RedisManager extends BinaryJedisPubSub implements Runnable {
|
||||
}
|
||||
|
||||
public void shutdown() {
|
||||
try {
|
||||
this.RedisService.awaitTermination(1, TimeUnit.SECONDS);
|
||||
} catch (InterruptedException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
this.isShuttingDown.set(true);
|
||||
if (this.subscribeJedis != null) {
|
||||
this.unsubscribe();
|
||||
@ -163,6 +158,8 @@ public class RedisManager extends BinaryJedisPubSub implements Runnable {
|
||||
}
|
||||
this.RedisReconnector.shutdown();
|
||||
this.RedisService.shutdown();
|
||||
this.RedisService = null;
|
||||
this.RedisReconnector = null;
|
||||
|
||||
}
|
||||
public void reload() {
|
||||
|
Loading…
Reference in New Issue
Block a user