File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -131,14 +131,14 @@ private void OnConnectionStatusChanged(SteamNetConnectionStatusChangedCallback_t
131131 }
132132 }
133133 }
134- else if ( param . m_info . m_eState == ESteamNetworkingConnectionState . k_ESteamNetworkingConnectionState_ClosedByPeer )
134+ else if ( param . m_info . m_eState == ESteamNetworkingConnectionState . k_ESteamNetworkingConnectionState_ClosedByPeer || param . m_info . m_eState == ESteamNetworkingConnectionState . k_ESteamNetworkingConnectionState_ProblemDetectedLocally )
135135 {
136- Debug . Log ( "Connection was closed by peer. " ) ;
136+ Debug . Log ( $ "Connection was closed by peer, { param . m_info . m_szEndDebug } ") ;
137137 Disconnect ( ) ;
138138 }
139139 else
140140 {
141- Debug . Log ( $ "Connection state changed: { param . m_info . m_eState . ToString ( ) } ") ;
141+ Debug . Log ( $ "Connection state changed: { param . m_info . m_eState . ToString ( ) } - { param . m_info . m_szEndDebug } ") ;
142142 }
143143 }
144144
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ private void OnConnectionStatusChanged(SteamNetConnectionStatusChangedCallback_t
8787 OnConnected . Invoke ( connectionId ) ;
8888 Debug . Log ( $ "Client with SteamID { clientSteamID } connected. Assigning connection id { connectionId } ") ;
8989 }
90- else if ( param . m_info . m_eState == ESteamNetworkingConnectionState . k_ESteamNetworkingConnectionState_ClosedByPeer )
90+ else if ( param . m_info . m_eState == ESteamNetworkingConnectionState . k_ESteamNetworkingConnectionState_ClosedByPeer || param . m_info . m_eState == ESteamNetworkingConnectionState . k_ESteamNetworkingConnectionState_ProblemDetectedLocally )
9191 {
9292 if ( connToMirrorID . TryGetValue ( param . m_hConn , out int connId ) )
9393 {
You can’t perform that action at this time.
0 commit comments