aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueThreadClass.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueThreadClass.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueThreadClass.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueThreadClass.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueThreadClass.cs
index f36baa7..c0edcc4 100644
--- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueThreadClass.cs
+++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueThreadClass.cs
@@ -27,6 +27,7 @@
27*/ 27*/
28 28
29using System; 29using System;
30using System.Collections;
30using System.Collections.Generic; 31using System.Collections.Generic;
31using System.Text; 32using System.Text;
32using System.Threading; 33using System.Threading;
@@ -72,7 +73,7 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase
72 73
73 public void ReadConfig() 74 public void ReadConfig()
74 { 75 {
75 foreach (ScriptEngine m_ScriptEngine in ScriptEngine.ScriptEngines) 76 foreach (ScriptEngine m_ScriptEngine in new ArrayList(ScriptEngine.ScriptEngines))
76 { 77 {
77 ScriptEngineName = m_ScriptEngine.ScriptEngineName; 78 ScriptEngineName = m_ScriptEngine.ScriptEngineName;
78 nothingToDoSleepms = m_ScriptEngine.ScriptConfigSource.GetInt("SleepTimeIfNoScriptExecutionMs", 50); 79 nothingToDoSleepms = m_ScriptEngine.ScriptConfigSource.GetInt("SleepTimeIfNoScriptExecutionMs", 50);
@@ -186,7 +187,7 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase
186 187
187 public void DoProcessQueue() 188 public void DoProcessQueue()
188 { 189 {
189 foreach (ScriptEngine m_ScriptEngine in ScriptEngine.ScriptEngines) 190 foreach (ScriptEngine m_ScriptEngine in new ArrayList(ScriptEngine.ScriptEngines))
190 { 191 {
191 lastScriptEngine = m_ScriptEngine; 192 lastScriptEngine = m_ScriptEngine;
192 // Every now and then check if we should shut down 193 // Every now and then check if we should shut down