From 950c0cbbd8d099c63206cc766dc26efe86072012 Mon Sep 17 00:00:00 2001 From: MrGadget1024 Date: Tue, 14 Dec 2021 06:57:17 -0500 Subject: [PATCH] fix: NetworkServer Shutdown - added OnErrorEvent = null --- Assets/Mirror/Runtime/NetworkServer.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Assets/Mirror/Runtime/NetworkServer.cs b/Assets/Mirror/Runtime/NetworkServer.cs index a36fe02bb..1d4ac2dfc 100644 --- a/Assets/Mirror/Runtime/NetworkServer.cs +++ b/Assets/Mirror/Runtime/NetworkServer.cs @@ -185,6 +185,7 @@ public static void Shutdown() // we don't want to use those hooks after Shutdown anymore. OnConnectedEvent = null; OnDisconnectedEvent = null; + OnErrorEvent = null; if (aoi != null) aoi.Reset(); }