You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// if we already have a connection to this use, drop it, having a single-direction connection will break signalling
768
-
if (m_mapConnections.find(remoteUserID) != m_mapConnections.end())
769
+
auto it = m_mapConnections.find(remoteUserID);
770
+
if (it != m_mapConnections.end())
769
771
{
770
-
if (m_mapConnections[remoteUserID].m_hSteamConnection != k_HSteamNetConnection_Invalid)
772
+
if (it->second.m_hSteamConnection != k_HSteamNetConnection_Invalid)
771
773
{
772
774
NetworkLog(ELogVerbosity::LOG_RELEASE, "[DC] Closing connection %lld, new connection is being negotiated", remoteUserID);
773
-
SteamNetworkingSockets()->CloseConnection(m_mapConnections[remoteUserID].m_hSteamConnection, 0, "Client Disconnecting Gracefully (new connection being negotiated)", false);
775
+
SteamNetworkingSockets()->CloseConnection(it->second.m_hSteamConnection, 0, "Client Disconnecting Gracefully (new connection being negotiated)", false);
0 commit comments