From 24862eaf15d873bbf0a695a8274f904415143466 Mon Sep 17 00:00:00 2001 From: Melanie Date: Wed, 25 Jan 2012 14:44:09 +0100 Subject: Spin off starting scripts in rezzed objects into a thread to avoid a recursion into the script engine if the script was suspended inside an event. --- OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs') diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 7af5d2d..840348a 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -3007,7 +3007,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api // objects rezzed with this method are die_at_edge by default. new_group.RootPart.SetDieAtEdge(true); - new_group.ResumeScripts(); + Util.FireAndForget(delegate object x) + { + new_group.ResumeScripts(); + }); m_ScriptEngine.PostObjectEvent(m_host.LocalId, new EventParams( "object_rez", new Object[] { -- cgit v1.1