From d89a834dc3ad8c9e1fbca73d48d31db6e8291ace Mon Sep 17 00:00:00 2001 From: mohammed jasem alaajel Date: Thu, 31 Aug 2023 14:30:02 +0400 Subject: [PATCH] remove autoclosable interface from proxy data manager --- .../minecraft/redisbungee/api/ProxyDataManager.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/RedisBungee-API/src/main/java/com/imaginarycode/minecraft/redisbungee/api/ProxyDataManager.java b/RedisBungee-API/src/main/java/com/imaginarycode/minecraft/redisbungee/api/ProxyDataManager.java index 73a7c14..34b7be0 100644 --- a/RedisBungee-API/src/main/java/com/imaginarycode/minecraft/redisbungee/api/ProxyDataManager.java +++ b/RedisBungee-API/src/main/java/com/imaginarycode/minecraft/redisbungee/api/ProxyDataManager.java @@ -35,7 +35,7 @@ import java.util.concurrent.atomic.AtomicBoolean; import static com.google.common.base.Preconditions.checkArgument; -public abstract class ProxyDataManager implements Runnable, AutoCloseable { +public abstract class ProxyDataManager implements Runnable { private static final String STREAM_ID = "redisbungee-stream"; private static final int MAX_ENTRIES = 10000; @@ -360,8 +360,7 @@ public abstract class ProxyDataManager implements Runnable, AutoCloseable { } } - @Override - public void close() throws Exception { + public void close() { closed.set(true); this.publishDeath(); this.heartbeats.clear();