Skip to content

Commit 4324f0b

Browse files
authored
fix: Shutdown() before Singleton = null on NetworkManager.OnDestroy() (#519)
1 parent 5c4a3e9 commit 4324f0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

com.unity.multiplayer.mlapi/Runtime/Core/NetworkingManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -652,8 +652,8 @@ private void OnDestroy()
652652
{
653653
if (Singleton != null && Singleton == this)
654654
{
655-
Singleton = null;
656655
Shutdown();
656+
Singleton = null;
657657
}
658658
}
659659

0 commit comments

Comments
 (0)