allow new thread creation if it was aborted on AsyncCommandManager
parent
d5e8e116d4
commit
e1aa591815
|
@ -182,11 +182,13 @@ 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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void ReadConfig()
|
private void ReadConfig()
|
||||||
{
|
{
|
||||||
|
@ -211,6 +213,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
{
|
{
|
||||||
cmdHandlerThread.Abort();
|
cmdHandlerThread.Abort();
|
||||||
//cmdHandlerThread.Join();
|
//cmdHandlerThread.Join();
|
||||||
|
cmdHandlerThread = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue