Small null check in DeregisterHandlers.

0.6.2-post-fixes
diva 2008-12-21 02:25:14 +00:00
parent f8f93f4c48
commit 9af9f648ef
1 changed files with 5 additions and 2 deletions

View File

@ -220,12 +220,15 @@ namespace OpenSim.Framework.Communications.Capabilities
/// <param name="path"></param>
/// <param name="restMethod"></param>
public void DeregisterHandlers()
{
if (m_capsHandlers != null)
{
foreach (string capsName in m_capsHandlers.Caps)
{
m_capsHandlers.Remove(capsName);
}
}
}
/// <summary>
/// Construct a client response detailing all the capabilities this server can provide.