Skip to content

Commit 32260ae

Browse files
committed
fixed suppressed opening message when attached to handshake
1 parent f94172f commit 32260ae

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/net/tootallnate/websocket/WebSocket.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ public void handleRead() throws InterruptedException , IOException {
169169
draft = d;
170170
this.handshakeComplete = true;
171171
open();
172+
handleRead();
172173
return;
173174
} else if( handshakestate == HandshakeState.MATCHING ) {
174175
if( draft != null ) {
@@ -188,6 +189,7 @@ public void handleRead() throws InterruptedException , IOException {
188189

189190
if( handshakestate == HandshakeState.MATCHED ) {
190191
open();
192+
handleRead();
191193
} else if( handshakestate != HandshakeState.MATCHING ) {
192194
abort( "the handshake did finaly not match" );
193195
}
@@ -199,6 +201,7 @@ public void handleRead() throws InterruptedException , IOException {
199201
if( handshakestate == HandshakeState.MATCHED ) {
200202
this.handshakeComplete = true;
201203
open();
204+
handleRead();
202205
} else if( handshakestate == HandshakeState.MATCHING ) {
203206
return;
204207
} else {

0 commit comments

Comments
 (0)