In XEngine, enqueue a script rez to the compile queue after setting m_CompileDict to avoid a rare but not impossible race condition.
parent
f3ab7c0f5c
commit
76722d8324
|
@ -1020,11 +1020,12 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
|||
}
|
||||
else
|
||||
{
|
||||
m_CompileQueue.Enqueue(parms);
|
||||
lock (m_CompileDict)
|
||||
{
|
||||
m_CompileDict[itemID] = 0;
|
||||
}
|
||||
|
||||
// This must occur after the m_CompileDict so that an existing compile thread cannot hit the check
|
||||
// in DoOnRezScript() before m_CompileDict has been updated.
|
||||
m_CompileQueue.Enqueue(parms);
|
||||
|
||||
// m_log.DebugFormat("[XEngine]: Added script {0} to compile queue", itemID);
|
||||
|
||||
|
|
Loading…
Reference in New Issue