Skip to content

Commit

Permalink
fix: remove pause network comment and log (#238)
Browse files Browse the repository at this point in the history
this was removed from NG and no longer applies
  • Loading branch information
uweeby committed Jul 4, 2020
1 parent 192fd16 commit 1a8c09d
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions Assets/Mirror/Runtime/NetworkManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -442,10 +442,6 @@ internal void ClientChangeScene(string newSceneName, SceneOperation sceneOperati

if (logger.LogEnabled()) logger.Log("ClientChangeScene newSceneName:" + newSceneName + " networkSceneName:" + networkSceneName);

// vis2k: pause message handling while loading scene. otherwise we will process messages and then lose all
// the state as soon as the load is finishing, causing all kinds of bugs because of missing state.
// (client may be null after StopClient etc.)
logger.Log("ClientChangeScene: pausing handlers while scene is loading to avoid data loss after scene was loaded.");
// Let client prepare for scene change
client.OnClientChangeScene(newSceneName, sceneOperation, customHandling);

Expand Down Expand Up @@ -530,8 +526,6 @@ void FinishLoadScene()
{
// NOTE: this cannot use NetworkClient.allClients[0] - that client may be for a completely different purpose.

// process queued messages that we received while loading the scene
logger.Log("FinishLoadScene: resuming handlers after scene was loading.");
// host mode?
if (client.IsLocalClient)
{
Expand Down

0 comments on commit 1a8c09d

Please sign in to comment.