From 3119173d878a78f125a01d82df3f6bbfc7840e07 Mon Sep 17 00:00:00 2001 From: Braydon Date: Sat, 16 Dec 2023 15:51:33 -0500 Subject: [PATCH] Properly shutdown Redis --- .../java/me/braydon/feather/database/impl/redis/Redis.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/me/braydon/feather/database/impl/redis/Redis.java b/src/main/java/me/braydon/feather/database/impl/redis/Redis.java index 772105c..f2b070e 100644 --- a/src/main/java/me/braydon/feather/database/impl/redis/Redis.java +++ b/src/main/java/me/braydon/feather/database/impl/redis/Redis.java @@ -57,7 +57,7 @@ public class Redis implements IDatabase, throw new IllegalStateException("Already connected"); } if (client != null) { // We have a client, close it first - client.close(); + client.shutdown(); } if (connection != null) { // We have a connection, close it first connection.close(); @@ -146,7 +146,7 @@ public class Redis implements IDatabase, @Override public void close() { if (client != null) { - client.close(); + client.shutdown(); } if (connection != null) { connection.close();