From e953406b7ff04a7b97402ad47dad4222194420d6 Mon Sep 17 00:00:00 2001 From: Sandu Liviu Catalin Date: Fri, 26 Aug 2016 17:21:50 +0300 Subject: [PATCH] Don't catch application exceptions in the entity instance destruction because they probably left the VM stack in an invalid state and the server should be allowed to crash. --- source/Core.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/source/Core.cpp b/source/Core.cpp index f96dcb60..c81ffbdc 100644 --- a/source/Core.cpp +++ b/source/Core.cpp @@ -37,14 +37,6 @@ namespace SqMod { */ LogErr("Squirrel exception caught " action); /* */ Logger::Get().Debug("%s", e.what()); /* */ } /* -*/ catch (const std::exception & e) /* -*/ { /* -*/ LogErr("Program exception caught " action " [%s]", e.what()); /* -*/ } /* -*/ catch (...) /* -*/ { /* -*/ LogErr("Unknown exception caught " action); /* -*/ } /* */ // ------------------------------------------------------------------------------------------------