allow new thread creation if it was aborted on AsyncCommandManager

0.9.0-post-fixes
UbitUmarov 2017-05-23 05:59:14 +01:00
parent d5e8e116d4
commit e1aa591815
1 changed files with 6 additions and 3 deletions

View File

@ -182,9 +182,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
if (cmdHandlerThread == null) if (cmdHandlerThread == null)
{ {
// Start the thread that will be doing the work // Start the thread that will be doing the work
cmdHandlerThread lock (staticLock)
= WorkManager.StartThread( {
cmdHandlerThread = WorkManager.StartThread(
CmdHandlerThreadLoop, "AsyncLSLCmdHandlerThread", ThreadPriority.Normal, true, true); CmdHandlerThreadLoop, "AsyncLSLCmdHandlerThread", ThreadPriority.Normal, true, true);
}
} }
} }
@ -210,7 +212,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
if (cmdHandlerThread.IsAlive == true) if (cmdHandlerThread.IsAlive == true)
{ {
cmdHandlerThread.Abort(); cmdHandlerThread.Abort();
//cmdHandlerThread.Join(); //cmdHandlerThread.Join();
cmdHandlerThread = null;
} }
} }
} }