From c0bd63e3cd065f8b07ff66693116a614ea6ae3e4 Mon Sep 17 00:00:00 2001 From: Govindass Date: Tue, 3 Nov 2020 12:23:00 +0200 Subject: [PATCH] test --- .gitignore | 2 +- .../net/limework/rediskript/managers/RedisManager.java | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 289e518..56dfdda 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ target out -.idea/workspace.xml +.idea compile \ No newline at end of file diff --git a/src/main/java/net/limework/rediskript/managers/RedisManager.java b/src/main/java/net/limework/rediskript/managers/RedisManager.java index e5cd3f1..46e6c63 100644 --- a/src/main/java/net/limework/rediskript/managers/RedisManager.java +++ b/src/main/java/net/limework/rediskript/managers/RedisManager.java @@ -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() {