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.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs
index f6afcdb..2a0ec37 100644
--- a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs
+++ b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs
@@ -269,6 +269,9 @@ namespace OpenSim.Region.ScriptEngine.XEngine
269 269
270 public void RemoveRegion(Scene scene) 270 public void RemoveRegion(Scene scene)
271 { 271 {
272 if (!m_Enabled)
273 return;
274
272 lock (m_Scripts) 275 lock (m_Scripts)
273 { 276 {
274 m_log.InfoFormat( 277 m_log.InfoFormat(
@@ -351,6 +354,9 @@ namespace OpenSim.Region.ScriptEngine.XEngine
351 354
352 public void Close() 355 public void Close()
353 { 356 {
357 if (!m_Enabled)
358 return;
359
354 lock (m_ScriptEngines) 360 lock (m_ScriptEngines)
355 { 361 {
356 if (m_ScriptEngines.Contains(this)) 362 if (m_ScriptEngines.Contains(this))