mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 08:06:27 +08:00
Untangles llDie handling in XEngine, which resulted in a thread being aborted while executing inside of Scene.
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user