YEngine: reduce calls to CheckRunLockInvariants

This commit is contained in:
UbitUmarov
2023-08-22 18:37:17 +01:00
parent 28ffa3e2c0
commit 29b8191225
4 changed files with 9 additions and 23 deletions

View File

@@ -72,6 +72,12 @@ namespace OpenSim.Region.ScriptEngine.Yengine
public Exception ResumeEx()
{
// Resume script from captured stack.
if (stackFrames is null)
{
m_log.Error($"ResumeEx: eventcode: None, stackFrame is null");
throw new Exception("ResumeEx: stackFrame is null");
}
callMode = XMRInstance.CallMode_RESTORE;
suspendOnCheckRunTemp = true;
try