2
0
mirror of https://github.com/proxiodev/RedisBungee.git synced 2024-11-05 04:48:02 +00:00

remove autoclosable interface from proxy data manager

This commit is contained in:
mohammed jasem alaajel 2023-08-31 14:30:02 +04:00
parent 10323b73f9
commit d89a834dc3
No known key found for this signature in database

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