Spin off NPC deletion into a thread to avoid it being done on a script

microthread. A stab at fixing exceptions.
This commit is contained in:
Melanie
2012-01-17 11:18:56 +01:00
parent 7549836986
commit 747c25e920

View File

@@ -2406,7 +2406,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
if (!module.CheckPermissions(npcId, m_host.OwnerID))
return;
module.DeleteNPC(npcId, World);
Util.FireAndForget(delegate(object x) {
module.DeleteNPC(npcId, World);
});
}
}