diff --git a/ixwebsocket/IXWebSocketPoll.cpp b/ixwebsocket/IXWebSocketPoll.cpp index 9634e198..53d07d5f 100644 --- a/ixwebsocket/IXWebSocketPoll.cpp +++ b/ixwebsocket/IXWebSocketPoll.cpp @@ -11,13 +11,14 @@ namespace ix WebSocketPoll::WebSocketPoll(WebSocket* websocket) { + bindWebsocket(websocket); } WebSocketPoll::~WebSocketPoll() { if (!_messages.empty()) { - + // not handled all messages } bindWebsocket(nullptr);