diff --git a/ixwebsocket/IXWebSocketTransport.cpp b/ixwebsocket/IXWebSocketTransport.cpp index f88911ce..3b000200 100644 --- a/ixwebsocket/IXWebSocketTransport.cpp +++ b/ixwebsocket/IXWebSocketTransport.cpp @@ -720,7 +720,7 @@ namespace ix // if an abnormal closure was raised in poll, and nothing else triggered a CLOSED state in // the received and processed data then close the connection - if (pollResult == PollResult::AbnormalClose) + if (pollResult != PollResult::Succeeded) { _rxbuf.clear();