Fix compilation

This commit is contained in:
s809
2024-04-01 21:52:20 +05:00
parent bdc4fa4477
commit 1cd2f75dd2
2 changed files with 3 additions and 3 deletions
@@ -80,9 +80,9 @@ public class ClientNetworkState implements Closeable
private String[] f3Log()
{
if (!this.client.isActive())
if (!this.client.isInitialized())
{
return new String[]{"Waiting for connection info..."};
return new String[]{"Did not receive connection info yet..."};
}
if (!this.client.isClosed())
@@ -60,7 +60,7 @@ public class NettyClient extends NettyEventSource implements INettyConnection, A
);
private final AtomicReference<EConnectionState> connectionState = new AtomicReference<>(EConnectionState.INITIAL);
/** Indicates whether the client is working. */
public boolean isActive() { return this.connectionState.get() != EConnectionState.INITIAL && !this.isClosed(); }
public boolean isInitialized() { return this.connectionState.get() != EConnectionState.INITIAL; }
/** Indicates whether the client is closed(-ing) and should not be used. */
public boolean isClosed() { return closedStates.contains(this.connectionState.get()); }