Issue #3290 websocket onOpen states
Signed-off-by: Greg Wilkins <gregw@webtide.com>
This commit is contained in:
parent
0b3262e16c
commit
5f20651d06
|
@ -398,8 +398,8 @@ public class WebSocketChannel implements IncomingFrames, FrameHandler.CoreSessio
|
|||
LOG.debug("ConnectionState: Transition to CONNECTED");
|
||||
|
||||
// Open connection and handler
|
||||
channelState.onOpen();
|
||||
handler.onOpen(this);
|
||||
channelState.onOpen();
|
||||
if (!demanding)
|
||||
connection.demand(1);
|
||||
|
||||
|
|
|
@ -98,7 +98,7 @@ public class WebSocketChannelState
|
|||
public boolean isOutputOpen()
|
||||
{
|
||||
State state = getState();
|
||||
return (state==State.OPEN || state==State.ISHUT);
|
||||
return (state==State.CONNECTED || state==State.OPEN || state==State.ISHUT);
|
||||
}
|
||||
|
||||
public CloseStatus getCloseStatus()
|
||||
|
|
Loading…
Reference in New Issue