Clear Handlers on NetworkClient.Shutdown (#1069)

* Clear handlers on Shutdown

* Update NetworkClient.cs

* Update NetworkClient.cs
This commit is contained in:
MrGadget 2019-09-12 07:35:08 -04:00 committed by vis2k
parent 40dcdc8e7d
commit d5e6bbc552

View File

@ -450,6 +450,7 @@ public static void Shutdown()
if (LogFilter.Debug) Debug.Log("Shutting down client."); if (LogFilter.Debug) Debug.Log("Shutting down client.");
ClientScene.Shutdown(); ClientScene.Shutdown();
connectState = ConnectState.None; connectState = ConnectState.None;
handlers.Clear();
} }
/// <summary> /// <summary>