mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
Small null check in DeregisterHandlers.
This commit is contained in:
@@ -221,9 +221,12 @@ namespace OpenSim.Framework.Communications.Capabilities
|
||||
/// <param name="restMethod"></param>
|
||||
public void DeregisterHandlers()
|
||||
{
|
||||
foreach (string capsName in m_capsHandlers.Caps)
|
||||
if (m_capsHandlers != null)
|
||||
{
|
||||
m_capsHandlers.Remove(capsName);
|
||||
foreach (string capsName in m_capsHandlers.Caps)
|
||||
{
|
||||
m_capsHandlers.Remove(capsName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user