aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/MaintenanceThread.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/MaintenanceThread.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/MaintenanceThread.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/MaintenanceThread.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/MaintenanceThread.cs
index 0911afb..af88183 100644
--- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/MaintenanceThread.cs
+++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/MaintenanceThread.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;
@@ -132,7 +133,7 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase
132 if (PleaseShutdown) 133 if (PleaseShutdown)
133 return; 134 return;
134 135
135 foreach (ScriptEngine m_ScriptEngine in ScriptEngine.ScriptEngines) 136 foreach (ScriptEngine m_ScriptEngine in new ArrayList(ScriptEngine.ScriptEngines))
136 { 137 {
137 lastScriptEngine = m_ScriptEngine; 138 lastScriptEngine = m_ScriptEngine;
138 if (m_ScriptEngine != null) 139 if (m_ScriptEngine != null)