diff options
author | Tedd Hansen | 2008-02-22 16:15:08 +0000 |
---|---|---|
committer | Tedd Hansen | 2008-02-22 16:15:08 +0000 |
commit | 42bcd76b36621e590e3756526e9550aea7932b14 (patch) | |
tree | 63fa2fd08a5c1bf7ac995e6703a678d6743599c1 /OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueThreadClass.cs | |
parent | Minor annoying Exception-bug fixed (diff) | |
download | opensim-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 '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueThreadClass.cs | 5 |
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 | ||
29 | using System; | 29 | using System; |
30 | using System.Collections; | ||
30 | using System.Collections.Generic; | 31 | using System.Collections.Generic; |
31 | using System.Text; | 32 | using System.Text; |
32 | using System.Threading; | 33 | using 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 |