mantis 3315: change the control of script flag running (needs testing)

This commit is contained in:
UbitUmarov
2021-11-20 03:24:34 +00:00
parent 1692254e3f
commit ca3525bf0a
13 changed files with 247 additions and 196 deletions

View File

@@ -401,11 +401,14 @@ namespace OpenSim.Region.ScriptEngine.Yengine
}
else
{
if(m_IState == XMRInstState.ONSLEEPQ)
if (m_IState == XMRInstState.ONSLEEPQ)
{
m_Engine.RemoveFromSleep(this);
m_IState = XMRInstState.SUSPENDED;
}
else if (m_IState == XMRInstState.IDLE)
m_IState = XMRInstState.SUSPENDED;
EmptyEventQueues();
}
}