diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common/ScriptEngineBase')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/MaintenanceThread.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/MaintenanceThread.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/MaintenanceThread.cs index 842bac9..dc98637 100644 --- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/MaintenanceThread.cs +++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/MaintenanceThread.cs | |||
@@ -58,6 +58,11 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase | |||
58 | /// </summary> | 58 | /// </summary> |
59 | private void StopMaintenanceThread() | 59 | private void StopMaintenanceThread() |
60 | { | 60 | { |
61 | #if DEBUG | ||
62 | m_ScriptEngine.Log.Debug(m_ScriptEngine.ScriptEngineName, "StopMaintenanceThread() called"); | ||
63 | #endif | ||
64 | PleaseShutdown = true; | ||
65 | Thread.Sleep(100); | ||
61 | try | 66 | try |
62 | { | 67 | { |
63 | if (MaintenanceThreadThread != null) | 68 | if (MaintenanceThreadThread != null) |
@@ -70,7 +75,7 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase | |||
70 | } | 75 | } |
71 | catch (Exception ex) | 76 | catch (Exception ex) |
72 | { | 77 | { |
73 | m_ScriptEngine.Log.Error("EventQueueManager", "Exception stopping maintenence thread: " + ex.ToString()); | 78 | m_ScriptEngine.Log.Error(m_ScriptEngine.ScriptEngineName, "Exception stopping maintenence thread: " + ex.ToString()); |
74 | } | 79 | } |
75 | 80 | ||
76 | } | 81 | } |