Small null check in DeregisterHandlers.
parent
f8f93f4c48
commit
9af9f648ef
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue