We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 58d1778 commit cd25949Copy full SHA for cd25949
1 file changed
src/main/java/org/java_websocket/client/WebSocketClient.java
@@ -181,7 +181,7 @@ public void run() {
181
int readBytes;
182
183
try {
184
- while ( !isClosed() && ( readBytes = istream.read( rawbuffer ) ) != -1 ) {
+ while ( !isClosing() && !isClosed() && ( readBytes = istream.read( rawbuffer ) ) != -1 ) {
185
engine.decode( ByteBuffer.wrap( rawbuffer, 0, readBytes ) );
186
}
187
engine.eot();
0 commit comments