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

microthread. A stab at fixing exceptions.
avinationmerge
Melanie 2012-01-17 11:18:56 +01:00
parent 7549836986
commit 747c25e920
1 changed files with 3 additions and 1 deletions

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);
});
}
}