This commit is contained in:
Melih Elibol
2018-04-06 13:28:52 -07:00
committed by Robert Nishihara
parent 24a8cede88
commit c7e11e9057
+3 -3
View File
@@ -17,13 +17,13 @@ void ConnectionPool::RegisterReceiver(ConnectionType type, const ClientID &clien
}
}
void ConnectionPool::RemoveReceiver(std::shared_ptr<TcpClientConnection> conn){
void ConnectionPool::RemoveReceiver(std::shared_ptr<TcpClientConnection> conn) {
std::unique_lock<std::mutex> guard(connection_mutex);
ClientID client_id = conn->GetClientID();
if (message_receive_connections_.count(client_id) != 0){
if (message_receive_connections_.count(client_id) != 0) {
Remove(message_receive_connections_, client_id, conn);
}
if (transfer_receive_connections_.count(client_id) != 0){
if (transfer_receive_connections_.count(client_id) != 0) {
Remove(transfer_receive_connections_, client_id, conn);
}
}