Skip to content

Commit 7129fd7

Browse files
committed
dotnet-fix
1 parent 50eb30c commit 7129fd7

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

com.unity.netcode.gameobjects/Tests/Runtime/TestHelpers/NetcodeIntegrationTest.cs

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1543,11 +1543,6 @@ protected void ShutdownAndCleanUp()
15431543
}
15441544
}
15451545

1546-
foreach (var networkManager in m_NetworkManagers)
1547-
{
1548-
networkManager?.Shutdown();
1549-
}
1550-
15511546
// Cleanup any remaining NetworkObjects
15521547
DestroySceneNetworkObjects();
15531548

@@ -1573,14 +1568,19 @@ protected IEnumerator CoroutineShutdownAndCleanUp()
15731568
{
15741569
DeRegisterSceneManagerHandler();
15751570

1571+
foreach (var networkManager in m_NetworkManagers)
1572+
{
1573+
networkManager?.Shutdown();
1574+
}
1575+
15761576
NetcodeIntegrationTestHelpers.Destroy();
15771577

15781578
m_PlayerNetworkObjects.Clear();
15791579
s_GlobalNetworkObjects.Clear();
15801580
}
15811581
catch (Exception e)
15821582
{
1583-
throw e;
1583+
Debug.LogException(e);
15841584
}
15851585
finally
15861586
{
@@ -1591,11 +1591,6 @@ protected IEnumerator CoroutineShutdownAndCleanUp()
15911591
}
15921592
}
15931593

1594-
foreach (var networkManager in m_NetworkManagers)
1595-
{
1596-
networkManager?.Shutdown();
1597-
}
1598-
15991594
// Allow time for NetworkManagers to fully shutdown
16001595
yield return k_DefaultTickRate;
16011596

0 commit comments

Comments
 (0)