aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueThreadClass.cs
diff options
context:
space:
mode:
authorTedd Hansen2008-02-22 16:15:08 +0000
committerTedd Hansen2008-02-22 16:15:08 +0000
commit42bcd76b36621e590e3756526e9550aea7932b14 (patch)
tree63fa2fd08a5c1bf7ac995e6703a678d6743599c1 /OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueThreadClass.cs
parentMinor annoying Exception-bug fixed (diff)
downloadopensim-SC-42bcd76b36621e590e3756526e9550aea7932b14.zip
opensim-SC-42bcd76b36621e590e3756526e9550aea7932b14.tar.gz
opensim-SC-42bcd76b36621e590e3756526e9550aea7932b14.tar.bz2
opensim-SC-42bcd76b36621e590e3756526e9550aea7932b14.tar.xz
Bugfixes - wasn't counting threads right++
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