mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
Prevent NetworkManager.ServerChangeScene from being called if a scene change is already in progress for that scene. (#2903)
This commit is contained in:
parent
20056edc0f
commit
413b612856
@ -750,6 +750,12 @@ public virtual void ServerChangeScene(string newSceneName)
|
||||
return;
|
||||
}
|
||||
|
||||
if (NetworkServer.isLoadingScene && newSceneName == networkSceneName)
|
||||
{
|
||||
Debug.LogError("ServerChangeScene is already in progress for " + newSceneName);
|
||||
return;
|
||||
}
|
||||
|
||||
// Debug.Log("ServerChangeScene " + newSceneName);
|
||||
NetworkServer.SetAllClientsNotReady();
|
||||
networkSceneName = newSceneName;
|
||||
|
Loading…
Reference in New Issue
Block a user