Fixed Caps handlers leak

This commit is contained in:
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>
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("GET", m_capsHandlers[capsName].Path);
m_capsHandlers.Remove(capsName);
}