From a844dbc5876ffdbe89e7b5dbab6efc3f7a2fd7bf Mon Sep 17 00:00:00 2001 From: Benjamin Sergeant Date: Thu, 9 Jan 2020 12:17:37 -0800 Subject: [PATCH] websocket closing / handle failure to flush send buffer as an error case --- ixwebsocket/IXWebSocketTransport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();