From a046eec2d9502640e485c2544a3acef64c68b63c Mon Sep 17 00:00:00 2001 From: Emma Miler Date: Thu, 1 Dec 2022 20:29:57 +0100 Subject: Exit instead of abort on server compile error (#353) * Exit instead of abort on server compile error Dedicated server should almost never call abort in the event of a crash. * Update NorthstarDLL/squirrel.cpp * Update squirrel.cpp * Update squirrel.cpp --- NorthstarDLL/squirrel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NorthstarDLL/squirrel.cpp b/NorthstarDLL/squirrel.cpp index 06a88ba3..02ca651e 100644 --- a/NorthstarDLL/squirrel.cpp +++ b/NorthstarDLL/squirrel.cpp @@ -360,9 +360,9 @@ void __fastcall ScriptCompileErrorHook(HSquirrelVM* sqvm, const char* error, con // kill dedicated server if we hit this if (IsDedicatedServer()) { - // flush the logger before we abort so debug things get saved to log file + // flush the logger before we exit so debug things get saved to log file logger->flush(); - abort(); + exit(EXIT_FAILURE); } else { -- cgit v1.2.3