From 3c97bb1e6fe5a850f35929da58321655331ebae1 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Tue, 23 May 2017 06:03:51 +0100 Subject: fix lock position removing a not necessary function --- .../Shared/Api/Implementation/AsyncCommandManager.cs | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/AsyncCommandManager.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/AsyncCommandManager.cs index 4714275..eb6455a 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/AsyncCommandManager.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/AsyncCommandManager.cs @@ -173,16 +173,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api m_XmlRequest[m_ScriptEngine] = new XmlRequest(this); numInstances++; - StartThread(); - } - } - - private static void StartThread() - { - if (cmdHandlerThread == null) - { - // Start the thread that will be doing the work - lock (staticLock) + if (cmdHandlerThread == null) { cmdHandlerThread = WorkManager.StartThread( CmdHandlerThreadLoop, "AsyncLSLCmdHandlerThread", ThreadPriority.Normal, true, true); -- cgit v1.1