Fix compilation
This commit is contained in:
+2
-2
@@ -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()); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user