Skip to content

Commit efc70f8

Browse files
authored
fix: make sure we translate transportId to clientId (#1531)
1 parent ca7d7b7 commit efc70f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

com.unity.netcode.gameobjects/Runtime/Core/NetworkManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1348,10 +1348,10 @@ private void HandleRawTransportPoll(NetworkEvent networkEvent, ulong clientId, A
13481348
#if DEVELOPMENT_BUILD || UNITY_EDITOR
13491349
s_TransportDisconnect.Begin();
13501350
#endif
1351-
OnClientDisconnectCallback?.Invoke(clientId);
1352-
13531351
clientId = TransportIdToClientId(clientId);
13541352

1353+
OnClientDisconnectCallback?.Invoke(clientId);
1354+
13551355
m_TransportIdToClientIdMap.Remove(transportId);
13561356
m_ClientIdToTransportIdMap.Remove(clientId);
13571357

0 commit comments

Comments
 (0)