socket server / used wrong mutex to protect _connectionsThreads
This commit is contained in:
		@@ -281,7 +281,7 @@ namespace ix
 | 
				
			|||||||
            if (_stop) return;
 | 
					            if (_stop) return;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            // Launch the handleConnection work asynchronously in its own thread.
 | 
					            // 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(
 | 
					            _connectionsThreads.push_back(std::make_pair(
 | 
				
			||||||
                    connectionState,
 | 
					                    connectionState,
 | 
				
			||||||
                    std::thread(&SocketServer::handleConnection,
 | 
					                    std::thread(&SocketServer::handleConnection,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user