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