Patch #9141 (Mantis #1655)

Untangles llDie handling in XEngine, which resulted in a thread being
aborted while executing inside of Scene.
This commit is contained in:
Melanie Thielker
2008-07-12 00:06:45 +00:00
parent b42770bf7a
commit 746c6fb1a2
3 changed files with 25 additions and 3 deletions

View File

@@ -637,7 +637,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
public void llDie()
{
m_host.AddScriptLPS(1);
World.DeleteSceneObject(m_host.ParentGroup);
throw new SelfDeleteException();
}
public double llGround(LSL_Types.Vector3 offset)

View File

@@ -52,6 +52,20 @@ namespace OpenSim.Region.ScriptEngine.Shared
}
}
[Serializable]
public class SelfDeleteException : Exception
{
public SelfDeleteException()
{
}
protected SelfDeleteException(
SerializationInfo info,
StreamingContext context)
{
}
}
public class DetectParams
{
public DetectParams()