diff options
author | Melanie | 2012-08-07 20:48:22 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2012-08-24 21:48:15 +0100 |
commit | c6efebdd8ce099d04856314e81f5b7854d7fbfbc (patch) | |
tree | 5d55eded975e3eab14269e89b58504350edefbb6 | |
parent | Flip version to 0.7.4-rc1 (diff) | |
download | opensim-SC_OLD-c6efebdd8ce099d04856314e81f5b7854d7fbfbc.zip opensim-SC_OLD-c6efebdd8ce099d04856314e81f5b7854d7fbfbc.tar.gz opensim-SC_OLD-c6efebdd8ce099d04856314e81f5b7854d7fbfbc.tar.bz2 opensim-SC_OLD-c6efebdd8ce099d04856314e81f5b7854d7fbfbc.tar.xz |
Release http-in URLs when llResetScript is called
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index c3b1f3d..3591d14 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -183,6 +183,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
183 | public void llResetScript() | 183 | public void llResetScript() |
184 | { | 184 | { |
185 | m_host.AddScriptLPS(1); | 185 | m_host.AddScriptLPS(1); |
186 | |||
187 | // We need to tell the URL module, if we hav one, to release | ||
188 | // the allocated URLs | ||
189 | if (m_UrlModule != null) | ||
190 | m_UrlModule.ScriptRemoved(m_item.ItemID); | ||
191 | |||
186 | m_ScriptEngine.ApiResetScript(m_item.ItemID); | 192 | m_ScriptEngine.ApiResetScript(m_item.ItemID); |
187 | } | 193 | } |
188 | 194 | ||