aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Common
diff options
context:
space:
mode:
authorSean Dague2008-04-28 14:50:09 +0000
committerSean Dague2008-04-28 14:50:09 +0000
commit3ddbf28cd06915dddc38b89715562ef6ed25f932 (patch)
tree695035a26c5f6d27e212888628e0a3edf81b5025 /OpenSim/Region/ScriptEngine/Common
parentFrom: Dr Scofield <hud@zurich.ibm.com> (diff)
downloadopensim-SC_OLD-3ddbf28cd06915dddc38b89715562ef6ed25f932.zip
opensim-SC_OLD-3ddbf28cd06915dddc38b89715562ef6ed25f932.tar.gz
opensim-SC_OLD-3ddbf28cd06915dddc38b89715562ef6ed25f932.tar.bz2
opensim-SC_OLD-3ddbf28cd06915dddc38b89715562ef6ed25f932.tar.xz
wrap a common exception that we get on shutdown of the script engine to keep
people from thinking it's a real issue.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common')
-rw-r--r--OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/MaintenanceThread.cs13
1 files changed, 9 insertions, 4 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/MaintenanceThread.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/MaintenanceThread.cs
index 2bf0e41..458bd4c 100644
--- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/MaintenanceThread.cs
+++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/MaintenanceThread.cs
@@ -37,6 +37,9 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase
37 /// </summary> 37 /// </summary>
38 public class MaintenanceThread : iScriptEngineFunctionModule 38 public class MaintenanceThread : iScriptEngineFunctionModule
39 { 39 {
40
41 private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
42
40 //public ScriptEngine m_ScriptEngine; 43 //public ScriptEngine m_ScriptEngine;
41 private int MaintenanceLoopms; 44 private int MaintenanceLoopms;
42 private int MaintenanceLoopTicks_ScriptLoadUnload; 45 private int MaintenanceLoopTicks_ScriptLoadUnload;
@@ -213,11 +216,13 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase
213 //} 216 //}
214 } 217 }
215 } 218 }
219 catch(System.Threading.ThreadAbortException ex)
220 {
221 m_log.Error("Thread aborted in MaintenanceLoopThread. If this is during shutdown, please ignore");
222 }
216 catch (Exception ex) 223 catch (Exception ex)
217 { 224 {
218 if (lastScriptEngine != null) 225 m_log.ErrorFormat("Exception in MaintenanceLoopThread. Thread will recover after 5 sec throttle. Exception: {0}", ex.ToString());
219 lastScriptEngine.Log.Error("[" + lastScriptEngine.ScriptEngineName + "]: Exception in MaintenanceLoopThread. Thread will recover after 5 sec throttle. Exception: " + ex.ToString());
220 Thread.Sleep(5000);
221 } 226 }
222 } 227 }
223 } 228 }
@@ -231,6 +236,6 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase
231 // get { return _PleaseShutdown; } 236 // get { return _PleaseShutdown; }
232 // set { _PleaseShutdown = value; } 237 // set { _PleaseShutdown = value; }
233 //} 238 //}
234 //private bool _PleaseShutdown = false; 239 //private bool _PleaseShutdown = false;
235 } 240 }
236} 241}