void stop(AsyncTcpSessionInterface_ptr session) { session->stop(); mConnections.erase(session); }
void stop(AsyncTcpSessionInterface_ptr session) { std::unique_lock<std::recursive_mutex> lock(mLock); session->stop(); connections.erase(session); }