From a829f208280bcad82d5e1f5a66c53e4d586491e5 Mon Sep 17 00:00:00 2001 From: Melanie Date: Mon, 6 Feb 2012 22:26:25 +0100 Subject: Experimental. Expand Fire & Forget for NPC delete --- .../ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'OpenSim/Region/ScriptEngine') diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs index 1f1d45e..614872e 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs @@ -2584,15 +2584,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api CheckThreatLevel(ThreatLevel.High, "osNpcRemove"); m_host.AddScriptLPS(1); - INPCModule module = World.RequestModuleInterface(); - if (module != null) - { - UUID npcId = new UUID(npc.m_string); + Util.FireAndForget(delegate(object x) { + INPCModule module = World.RequestModuleInterface(); + if (module != null) + { + UUID npcId = new UUID(npc.m_string); - if (!module.CheckPermissions(npcId, m_host.OwnerID)) - return; + if (!module.CheckPermissions(npcId, m_host.OwnerID)) + return; - Util.FireAndForget(delegate(object x) { module.DeleteNPC(npcId, World); }); } -- cgit v1.1