aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r--OpenSim/Region/ScriptEngine/XEngine/XEngine.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs
index c437703..32d1fd3 100644
--- a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs
+++ b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs
@@ -337,6 +337,8 @@ namespace OpenSim.Region.ScriptEngine.XEngine
337 337
338 public void RemoveRegion(Scene scene) 338 public void RemoveRegion(Scene scene)
339 { 339 {
340 if (!m_Enabled)
341 return;
340 lockScriptsForRead(true); 342 lockScriptsForRead(true);
341 foreach (IScriptInstance instance in m_Scripts.Values) 343 foreach (IScriptInstance instance in m_Scripts.Values)
342 { 344 {
@@ -418,6 +420,9 @@ namespace OpenSim.Region.ScriptEngine.XEngine
418 420
419 public void Close() 421 public void Close()
420 { 422 {
423 if (!m_Enabled)
424 return;
425
421 lock (m_ScriptEngines) 426 lock (m_ScriptEngines)
422 { 427 {
423 if (m_ScriptEngines.Contains(this)) 428 if (m_ScriptEngines.Contains(this))