Fixed Caps handlers leak
parent
30fa5ad1e2
commit
cc81d924ca
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue