Spin off NPC deletion into a thread to avoid it being done on a script
microthread. A stab at fixing exceptions.avinationmerge
parent
7549836986
commit
747c25e920
|
@ -2406,7 +2406,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
if (!module.CheckPermissions(npcId, m_host.OwnerID))
|
if (!module.CheckPermissions(npcId, m_host.OwnerID))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
module.DeleteNPC(npcId, World);
|
Util.FireAndForget(delegate(object x) {
|
||||||
|
module.DeleteNPC(npcId, World);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue