mantis 8706: avoid spurius logs on Yengine during object delete

master
UbitUmarov 2020-05-24 15:04:44 +01:00
parent cc4e14a88d
commit 5f52de2578
1 changed files with 10 additions and 3 deletions

View File

@ -309,7 +309,7 @@ namespace OpenSim.Region.ScriptEngine.Yengine
Exception e = null; Exception e = null;
// Maybe it has been Disposed() // Maybe it has been Disposed()
if(m_Part == null) if(m_Part == null || m_Part.Inventory == null)
{ {
m_RunOnePhase = "runone saw it disposed"; m_RunOnePhase = "runone saw it disposed";
return XMRInstState.DISPOSED; return XMRInstState.DISPOSED;
@ -534,6 +534,13 @@ namespace OpenSim.Region.ScriptEngine.Yengine
eventCode = ScriptEventCode.None; eventCode = ScriptEventCode.None;
stackFrames = null; stackFrames = null;
if(m_Part == null || m_Part.Inventory == null)
{
//we are gone and don't know it still
m_SleepUntil = DateTime.MaxValue;
return;
}
if (e is ScriptDeleteException) if (e is ScriptDeleteException)
{ {
// Script did something like llRemoveInventory(llGetScriptName()); // Script did something like llRemoveInventory(llGetScriptName());