From 03c402842a73d4590bc971e6b5869374b0dd5901 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Tue, 4 Nov 2008 20:43:11 +0000 Subject: * Stop a problem in the DotNetEngine event queue thread from immediately bringing down the whole sim, though the sim will need a reboot --- OpenSim/Region/ScriptEngine/DotNetEngine/EventQueueThreadClass.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/EventQueueThreadClass.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/EventQueueThreadClass.cs index b520cde..5d79f96 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/EventQueueThreadClass.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/EventQueueThreadClass.cs @@ -211,6 +211,14 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine catch (ThreadAbortException) { } + catch (Exception e) + { + // TODO: Let users in the sim and those entering it and possibly an external watchdog know what has happened + if (lastScriptEngine != null) + lastScriptEngine.Log.ErrorFormat( + "[{0}]: Event queue thread terminating with exception. PLEASE REBOOT YOUR SIM - SCRIPT EVENTS WILL NOT WORK UNTIL YOU DO. Exception is {1}", + ScriptEngineName, e); + } } public void DoProcessQueue() -- cgit v1.1