From 879a2604983631df7a578fe6dba2afe9d65b5ea5 Mon Sep 17 00:00:00 2001 From: Tedd Hansen Date: Fri, 22 Feb 2008 14:53:26 +0000 Subject: Minor annoying Exception-bug fixed --- .../Region/ScriptEngine/Common/ScriptEngineBase/MaintenanceThread.cs | 3 ++- OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptEngine.cs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region') 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 @@ */ using System; +using System.Collections; using System.Collections.Generic; using System.Text; using System.Threading; @@ -132,7 +133,7 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase if (PleaseShutdown) return; - foreach (ScriptEngine m_ScriptEngine in ScriptEngine.ScriptEngines) + foreach (ScriptEngine m_ScriptEngine in new ArrayList(ScriptEngine.ScriptEngines)) { lastScriptEngine = m_ScriptEngine; if (m_ScriptEngine != null) diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptEngine.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptEngine.cs index 0d087ed..60416eb 100644 --- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptEngine.cs +++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptEngine.cs @@ -132,7 +132,7 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase public void ReadConfig() { #if DEBUG - m_log.Debug("[" + ScriptEngineName + "]: Refreshing configuration for all modules"); + //m_log.Debug("[" + ScriptEngineName + "]: Refreshing configuration for all modules"); #endif RefreshConfigFileSeconds = ScriptConfigSource.GetInt("RefreshConfig", 30); -- cgit v1.1