From d5e6bbc5528cf1a820eb2dcf9a37beaecf712f15 Mon Sep 17 00:00:00 2001 From: MrGadget Date: Thu, 12 Sep 2019 07:35:08 -0400 Subject: [PATCH] Clear Handlers on NetworkClient.Shutdown (#1069) * Clear handlers on Shutdown * Update NetworkClient.cs * Update NetworkClient.cs --- Assets/Mirror/Runtime/NetworkClient.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Assets/Mirror/Runtime/NetworkClient.cs b/Assets/Mirror/Runtime/NetworkClient.cs index 07473b341..0674f7fdd 100644 --- a/Assets/Mirror/Runtime/NetworkClient.cs +++ b/Assets/Mirror/Runtime/NetworkClient.cs @@ -450,6 +450,7 @@ public static void Shutdown() if (LogFilter.Debug) Debug.Log("Shutting down client."); ClientScene.Shutdown(); connectState = ConnectState.None; + handlers.Clear(); } ///