mirror of
https://github.com/opensim/opensim.git
synced 2026-07-14 11:45:35 +08:00
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:
@@ -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);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user