Code cleanups.
This commit is contained in:
parent
f6e460fc35
commit
2e21234328
|
@ -524,8 +524,6 @@ public abstract class AbstractWebSocketConnection extends AbstractConnection imp
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
protected void onFillInterestedFailed(Throwable cause)
|
||||
{
|
||||
|
|
|
@ -44,7 +44,7 @@ public class IOState
|
|||
/**
|
||||
* The source of a close handshake. (ie: who initiated it).
|
||||
*/
|
||||
private static enum CloseHandshakeSource
|
||||
private enum CloseHandshakeSource
|
||||
{
|
||||
/** No close handshake initiated (yet) */
|
||||
NONE,
|
||||
|
@ -53,7 +53,7 @@ public class IOState
|
|||
/** Remote side initiated the close handshake */
|
||||
REMOTE,
|
||||
/** An abnormal close situation (disconnect, timeout, etc...) */
|
||||
ABNORMAL;
|
||||
ABNORMAL
|
||||
}
|
||||
|
||||
public static interface ConnectionStateListener
|
||||
|
@ -294,8 +294,7 @@ public class IOState
|
|||
if (event != null)
|
||||
{
|
||||
notifyStateListeners(event);
|
||||
|
||||
if(abnormalEvent != null)
|
||||
if (abnormalEvent != null)
|
||||
{
|
||||
notifyStateListeners(abnormalEvent);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue