From f3938075989d151a0896db30c582cbc02fe25dce Mon Sep 17 00:00:00 2001 From: hondacrx Date: Mon, 8 Mar 2021 16:47:55 -0500 Subject: [PATCH] Server/Main: Enable UnhandledException. --- Source/WorldServer/Server.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/WorldServer/Server.cs b/Source/WorldServer/Server.cs index 429794afb..e29f92bdb 100644 --- a/Source/WorldServer/Server.cs +++ b/Source/WorldServer/Server.cs @@ -40,6 +40,8 @@ namespace WorldServer Console.CancelKeyPress += (o, e) => Global.WorldMgr.StopNow(ShutdownExitCode.Shutdown); + AppDomain.CurrentDomain.UnhandledException += UnhandledExceptionHandler; + if (!ConfigMgr.Load(Process.GetCurrentProcess().ProcessName + ".conf")) ExitNow();