diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/AsyncCommandManager.cs | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/AsyncCommandManager.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/AsyncCommandManager.cs index 1c59624..352e316 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/AsyncCommandManager.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/AsyncCommandManager.cs | |||
@@ -47,7 +47,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
47 | /// </summary> | 47 | /// </summary> |
48 | public class AsyncCommandManager | 48 | public class AsyncCommandManager |
49 | { | 49 | { |
50 | // private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 50 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
51 | 51 | ||
52 | private static Thread cmdHandlerThread; | 52 | private static Thread cmdHandlerThread; |
53 | private static int cmdHandlerThreadCycleSleepms; | 53 | private static int cmdHandlerThreadCycleSleepms; |
@@ -183,17 +183,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
183 | { | 183 | { |
184 | try | 184 | try |
185 | { | 185 | { |
186 | while (true) | 186 | Thread.Sleep(cmdHandlerThreadCycleSleepms); |
187 | { | ||
188 | Thread.Sleep(cmdHandlerThreadCycleSleepms); | ||
189 | 187 | ||
190 | DoOneCmdHandlerPass(); | 188 | DoOneCmdHandlerPass(); |
191 | 189 | ||
192 | Watchdog.UpdateThread(); | 190 | Watchdog.UpdateThread(); |
193 | } | ||
194 | } | 191 | } |
195 | catch | 192 | catch (Exception e) |
196 | { | 193 | { |
194 | m_log.Error("[ASYNC COMMAND MANAGER]: Exception in command handler pass: ", e); | ||
197 | } | 195 | } |
198 | } | 196 | } |
199 | } | 197 | } |