Skip to content

Commit 6065042

Browse files
fix
When MULTIPLAYER_TOOLS_1_0_0_PRE_7 is defined there is code within UnityTransport that did not take the ClientIdToTransportId into consideration. This resolves that issue.
1 parent a064258 commit 6065042

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

com.unity.netcode.gameobjects/Runtime/Transports/UTP/UnityTransport.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,8 +1107,11 @@ private void ExtractNetworkMetrics()
11071107
{
11081108
continue;
11091109
}
1110-
var transportClientId = m_NetworkManager.ConnectionManager.ClientIdToTransportId(ngoConnectionId);
1111-
ExtractNetworkMetricsForClient(transportClientId);
1110+
var transportClientIdReturn = m_NetworkManager.ConnectionManager.ClientIdToTransportId(ngoConnectionId);
1111+
if (transportClientIdReturn.Item2)
1112+
{
1113+
ExtractNetworkMetricsForClient(transportClientIdReturn.Item1);
1114+
}
11121115
}
11131116
}
11141117
else

0 commit comments

Comments
 (0)