1 parent adb20a5 commit b6cc899Copy full SHA for b6cc899
1 file changed
src/main/java/org/java_websocket/client/WebSocketClient.java
@@ -239,9 +239,10 @@ private final void interruptableRun() {
239
if( wrappedchannel instanceof WrappedByteChannel ) {
240
WrappedByteChannel w = (WrappedByteChannel) wrappedchannel;
241
if( w.isNeedRead() ) {
242
- while ( SocketChannelIOHelper.read( buff, conn, w ) ) {
+ while ( SocketChannelIOHelper.readMore( buff, conn, w ) ) {
243
conn.decode( buff );
244
}
245
+ conn.decode( buff );
246
247
248
0 commit comments