2
0
mirror of https://github.com/proxiodev/RedisBungee.git synced 2026-05-07 13:40:26 +00:00

remove autoclosable interface from proxy data manager

This commit is contained in:
2023-08-31 14:30:02 +04:00
parent 10323b73f9
commit d89a834dc3

View File

@@ -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();