Skip to content

Commit b6cc899

Browse files
committed
improved ssl handling
1 parent adb20a5 commit b6cc899

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/org/java_websocket/client/WebSocketClient.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,9 +239,10 @@ private final void interruptableRun() {
239239
if( wrappedchannel instanceof WrappedByteChannel ) {
240240
WrappedByteChannel w = (WrappedByteChannel) wrappedchannel;
241241
if( w.isNeedRead() ) {
242-
while ( SocketChannelIOHelper.read( buff, conn, w ) ) {
242+
while ( SocketChannelIOHelper.readMore( buff, conn, w ) ) {
243243
conn.decode( buff );
244244
}
245+
conn.decode( buff );
245246
}
246247
}
247248
}

0 commit comments

Comments
 (0)