diff --git a/ixwebsocket/IXWebSocket.cpp b/ixwebsocket/IXWebSocket.cpp index 7d568561..628fb314 100644 --- a/ixwebsocket/IXWebSocket.cpp +++ b/ixwebsocket/IXWebSocket.cpp @@ -149,6 +149,7 @@ namespace ix // This value needs to be forced when shutting down, it is restored later _automaticReconnection = false; + // sync close close(); if (_thread.joinable())