From 9d61084e7b9305c683212f5c63bee37f918e9727 Mon Sep 17 00:00:00 2001 From: Benjamin Sergeant Date: Mon, 6 May 2019 12:24:20 -0700 Subject: [PATCH] socket server / used wrong mutex to protect _connectionsThreads --- ixwebsocket/IXSocketServer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ixwebsocket/IXSocketServer.cpp b/ixwebsocket/IXSocketServer.cpp index 79d8d3d3..31da31c2 100644 --- a/ixwebsocket/IXSocketServer.cpp +++ b/ixwebsocket/IXSocketServer.cpp @@ -281,7 +281,7 @@ namespace ix if (_stop) return; // Launch the handleConnection work asynchronously in its own thread. - std::lock_guard lock(_conditionVariableMutex); + std::lock_guard lock(_connectionsThreadsMutex); _connectionsThreads.push_back(std::make_pair( connectionState, std::thread(&SocketServer::handleConnection,