From 4ce0e6d8223de7ec059ba6881b52ba4b255dafd5 Mon Sep 17 00:00:00 2001 From: Tedd Hansen Date: Sun, 21 Sep 2008 09:04:39 +0000 Subject: bugfix for shutdown --- .../ScriptEngine/RegionScriptEnginePlugin.cs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'OpenSim') diff --git a/OpenSim/ApplicationPlugins/ScriptEngine/RegionScriptEnginePlugin.cs b/OpenSim/ApplicationPlugins/ScriptEngine/RegionScriptEnginePlugin.cs index e85e4dd..d530147 100644 --- a/OpenSim/ApplicationPlugins/ScriptEngine/RegionScriptEnginePlugin.cs +++ b/OpenSim/ApplicationPlugins/ScriptEngine/RegionScriptEnginePlugin.cs @@ -69,8 +69,15 @@ namespace OpenSim.ApplicationPlugins.ScriptEngine public void Close() { - if (scriptEngine != null) - scriptEngine.Close(); + try + { + if (scriptEngine != null) + scriptEngine.Close(); + } + catch (Exception ex) + { + scriptEngine.m_log.Error("[ScriptEngine]: Unable to close engine \"" + tempScriptEngineName + "\": " + ex.ToString()); + } } public string Name -- cgit v1.1