diff options
author | Justin Clarke Casey | 2008-02-18 11:14:53 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-02-18 11:14:53 +0000 |
commit | 1cbef0b9084bce0816c7ef471b3b58d1dbf9de7c (patch) | |
tree | d94dd87220392d7efcc80b35ea4d8d0d8fb4f01f /OpenSim/Region/ScriptEngine | |
parent | Small change to the IAgentAssetTransactions file that Chi11ken added for me (... (diff) | |
download | opensim-SC-1cbef0b9084bce0816c7ef471b3b58d1dbf9de7c.zip opensim-SC-1cbef0b9084bce0816c7ef471b3b58d1dbf9de7c.tar.gz opensim-SC-1cbef0b9084bce0816c7ef471b3b58d1dbf9de7c.tar.bz2 opensim-SC-1cbef0b9084bce0816c7ef471b3b58d1dbf9de7c.tar.xz |
Patch from Michael Osias IBM (jimbo2120)
In his own words:
If a prim becomes a listener or remote channel and the script is deleted, it cannot become a listener or channel again with a new script.
This patch fixes that.
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncLSLCommandManager.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncLSLCommandManager.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncLSLCommandManager.cs index c8b1256..1afe71c 100644 --- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncLSLCommandManager.cs +++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncLSLCommandManager.cs | |||
@@ -120,6 +120,13 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase | |||
120 | IHttpRequests iHttpReq = | 120 | IHttpRequests iHttpReq = |
121 | m_ScriptEngine.World.RequestModuleInterface<IHttpRequests>(); | 121 | m_ScriptEngine.World.RequestModuleInterface<IHttpRequests>(); |
122 | iHttpReq.StopHttpRequest(localID, itemID); | 122 | iHttpReq.StopHttpRequest(localID, itemID); |
123 | |||
124 | IWorldComm comms = m_ScriptEngine.World.RequestModuleInterface<IWorldComm>(); | ||
125 | comms.DeleteListener(itemID); | ||
126 | |||
127 | IXMLRPC xmlrpc = m_ScriptEngine.World.RequestModuleInterface<IXMLRPC>(); | ||
128 | xmlrpc.DeleteChannel(itemID); | ||
129 | |||
123 | } | 130 | } |
124 | 131 | ||
125 | #region TIMER | 132 | #region TIMER |