mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
32fdd5215f
* fix: Prevent recursion overflow when stopping Calling StopServer from OnStartServer or StopClient from OnStopClient (or from user code invoked from those virtual methods) would create a recursion overflow. This PR moves the setting of `isNetworkActive = false;` up above the virtual method calls in both cases, and adds a check to early out if false to prevent recursion and overflow. Debug logs were also moved up nearer the top of the method. Fixes: #2080 * Update Assets/Mirror/Runtime/NetworkManager.cs * Update Assets/Mirror/Runtime/NetworkManager.cs Co-authored-by: vis2k <info@noobtuts.com> |
||
---|---|---|
.. | ||
Mirror | ||
ScriptTemplates | ||
Mirror.meta | ||
ScriptTemplates.meta |