diff options
Diffstat (limited to 'OpenSim/Region/Environment/Scenes')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Scene.cs | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index 7ee0478..2237922 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs | |||
@@ -1755,20 +1755,23 @@ namespace OpenSim.Region.Environment.Scenes | |||
1755 | /// <param name="agentId"></param> | 1755 | /// <param name="agentId"></param> |
1756 | public void RemoveCapsHandler(LLUUID agentId) | 1756 | public void RemoveCapsHandler(LLUUID agentId) |
1757 | { | 1757 | { |
1758 | if (m_capsHandlers.ContainsKey(agentId)) | 1758 | lock (m_capsHandlers) |
1759 | { | 1759 | { |
1760 | m_log.DebugFormat( | 1760 | if (m_capsHandlers.ContainsKey(agentId)) |
1761 | "[CAPS]: Removing CAPS handler for root agent {0} in {1}", | 1761 | { |
1762 | agentId, RegionInfo.RegionName); | 1762 | m_log.DebugFormat( |
1763 | 1763 | "[CAPS]: Removing CAPS handler for root agent {0} in {1}", | |
1764 | m_capsHandlers[agentId].DeregisterHandlers(); | 1764 | agentId, RegionInfo.RegionName); |
1765 | m_capsHandlers.Remove(agentId); | 1765 | |
1766 | } | 1766 | m_capsHandlers[agentId].DeregisterHandlers(); |
1767 | else | 1767 | m_capsHandlers.Remove(agentId); |
1768 | { | 1768 | } |
1769 | m_log.WarnFormat( | 1769 | else |
1770 | "[CAPS]: Received request to remove CAPS handler for root agent {0} in {1}, but no such CAPS handler found!", | 1770 | { |
1771 | agentId, RegionInfo.RegionName); | 1771 | m_log.WarnFormat( |
1772 | "[CAPS]: Received request to remove CAPS handler for root agent {0} in {1}, but no such CAPS handler found!", | ||
1773 | agentId, RegionInfo.RegionName); | ||
1774 | } | ||
1772 | } | 1775 | } |
1773 | } | 1776 | } |
1774 | 1777 | ||