Skip to content

Commit

Permalink
fix: Suspend server transport while changing scenes (#1169)
Browse files Browse the repository at this point in the history
* Suspend transport

* fixed typo
  • Loading branch information
MrGadget authored and paulpach committed Oct 20, 2019
1 parent e8cc9ba commit e8fac8a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Assets/Mirror/Runtime/NetworkManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -645,6 +645,10 @@ public virtual void ServerChangeScene(string newSceneName, LoadSceneMode sceneMo

NetworkServer.SendToAll(msg);

// Suspend the server's transport while changing scenes
// It will be re-enabled in FinishScene.
Transport.activeTransport.enabled = false;

startPositionIndex = 0;
startPositions.Clear();
}
Expand Down

0 comments on commit e8fac8a

Please sign in to comment.