socket server / used wrong mutex to protect _connectionsThreads

This commit is contained in:
Benjamin Sergeant 2019-05-06 12:24:20 -07:00
parent 78198a0147
commit 205c8c15bd

View File

@ -281,7 +281,7 @@ namespace ix
if (_stop) return;
// Launch the handleConnection work asynchronously in its own thread.
std::lock_guard<std::mutex> lock(_conditionVariableMutex);
std::lock_guard<std::mutex> lock(_connectionsThreadsMutex);
_connectionsThreads.push_back(std::make_pair(
connectionState,
std::thread(&SocketServer::handleConnection,