We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ccd660d commit a2c6f7dCopy full SHA for a2c6f7d
com.unity.netcode.gameobjects/Runtime/Transports/UTP/UnityTransport.cs
@@ -995,6 +995,11 @@ private void ExtractNetworkMetricsForClient(ulong transportClientId)
995
996
private void ExtractNetworkMetricsFromPipeline(NetworkPipeline pipeline, NetworkConnection networkConnection)
997
{
998
+ if (m_Driver.GetConnectionState(networkConnection) != NetworkConnection.State.Connected)
999
+ {
1000
+ return;
1001
+ }
1002
+
1003
//Don't need to dispose of the buffers, they are filled with data pointers.
1004
m_Driver.GetPipelineBuffers(pipeline,
1005
#if UTP_TRANSPORT_2_0_ABOVE
0 commit comments