Fixed Caps handlers leak

0.7.1-dev
Diva Canto 2011-02-05 19:34:02 -08:00
parent 30fa5ad1e2
commit cc81d924ca
2 changed files with 1 additions and 2 deletions

View File

@ -88,8 +88,8 @@ namespace OpenSim.Framework.Capabilities
/// handler to be removed</param> /// handler to be removed</param>
public void Remove(string capsName) public void Remove(string capsName)
{ {
// This line must be here, or caps will break!
m_httpListener.RemoveStreamHandler("POST", m_capsHandlers[capsName].Path); m_httpListener.RemoveStreamHandler("POST", m_capsHandlers[capsName].Path);
m_httpListener.RemoveStreamHandler("GET", m_capsHandlers[capsName].Path);
m_capsHandlers.Remove(capsName); m_capsHandlers.Remove(capsName);
} }

View File

@ -66,7 +66,6 @@ namespace OpenSim.Region.CoreModules.Agent.Capabilities
MainConsole.Instance.Commands.AddCommand("Capabilities", false, "show caps", MainConsole.Instance.Commands.AddCommand("Capabilities", false, "show caps",
"show capabilities", "show capabilities",
"Shows all registered capabilities", CapabilitiesCommand); "Shows all registered capabilities", CapabilitiesCommand);
m_log.Error("\n\n**************************************************************\n\n");
} }
public void RegionLoaded(Scene scene) public void RegionLoaded(Scene scene)