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/MaintenanceThread.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 'OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/MaintenanceThread.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/MaintenanceThread.cs | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/MaintenanceThread.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/MaintenanceThread.cs index af88183..0458a50 100644 --- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/MaintenanceThread.cs +++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/MaintenanceThread.cs | |||
@@ -96,7 +96,7 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase | |||
96 | #if DEBUG | 96 | #if DEBUG |
97 | //m_ScriptEngine.Log.Debug("[" + m_ScriptEngine.ScriptEngineName + "]: StopMaintenanceThread() called"); | 97 | //m_ScriptEngine.Log.Debug("[" + m_ScriptEngine.ScriptEngineName + "]: StopMaintenanceThread() called"); |
98 | #endif | 98 | #endif |
99 | PleaseShutdown = true; | 99 | //PleaseShutdown = true; |
100 | Thread.Sleep(100); | 100 | Thread.Sleep(100); |
101 | try | 101 | try |
102 | { | 102 | { |
@@ -130,8 +130,8 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase | |||
130 | while (true) | 130 | while (true) |
131 | { | 131 | { |
132 | System.Threading.Thread.Sleep(MaintenanceLoopms); // Sleep before next pass | 132 | System.Threading.Thread.Sleep(MaintenanceLoopms); // Sleep before next pass |
133 | if (PleaseShutdown) | 133 | //if (PleaseShutdown) |
134 | return; | 134 | // return; |
135 | 135 | ||
136 | foreach (ScriptEngine m_ScriptEngine in new ArrayList(ScriptEngine.ScriptEngines)) | 136 | foreach (ScriptEngine m_ScriptEngine in new ArrayList(ScriptEngine.ScriptEngines)) |
137 | { | 137 | { |
@@ -187,14 +187,14 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase | |||
187 | } | 187 | } |
188 | #endregion | 188 | #endregion |
189 | 189 | ||
190 | /// <summary> | 190 | ///// <summary> |
191 | /// If set to true then threads and stuff should try to make a graceful exit | 191 | ///// If set to true then threads and stuff should try to make a graceful exit |
192 | /// </summary> | 192 | ///// </summary> |
193 | public bool PleaseShutdown | 193 | //public bool PleaseShutdown |
194 | { | 194 | //{ |
195 | get { return _PleaseShutdown; } | 195 | // get { return _PleaseShutdown; } |
196 | set { _PleaseShutdown = value; } | 196 | // set { _PleaseShutdown = value; } |
197 | } | 197 | //} |
198 | private bool _PleaseShutdown = false; | 198 | //private bool _PleaseShutdown = false; |
199 | } | 199 | } |
200 | } | 200 | } |