Skip to content

Commit ec32db8

Browse files
fix
Minor fix to how we shutdown NetworkManager when exiting playmode to assure we follow the same steps as we do when the application quits.
1 parent 26e0946 commit ec32db8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1023,8 +1023,7 @@ private void ModeChanged(PlayModeStateChange change)
10231023
{
10241024
if (IsListening && change == PlayModeStateChange.ExitingPlayMode)
10251025
{
1026-
// Make sure we are not holding onto anything in case domain reload is disabled
1027-
ShutdownInternal();
1026+
OnApplicationQuit();
10281027
}
10291028
}
10301029
#endif

0 commit comments

Comments
 (0)