diff options
Diffstat (limited to 'OpenSim/Region/CoreModules/Framework')
-rw-r--r-- | OpenSim/Region/CoreModules/Framework/Caps/CapabilitiesModule.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/Caps/CapabilitiesModule.cs b/OpenSim/Region/CoreModules/Framework/Caps/CapabilitiesModule.cs index 498cc2f..8aceaa1 100644 --- a/OpenSim/Region/CoreModules/Framework/Caps/CapabilitiesModule.cs +++ b/OpenSim/Region/CoreModules/Framework/Caps/CapabilitiesModule.cs | |||
@@ -182,6 +182,16 @@ namespace OpenSim.Region.CoreModules.Framework | |||
182 | } | 182 | } |
183 | else | 183 | else |
184 | { | 184 | { |
185 | foreach (KeyValuePair<uint, Caps> kvp in m_capsObjects) | ||
186 | { | ||
187 | if (kvp.Value.AgentID == agentId) | ||
188 | { | ||
189 | kvp.Value.DeregisterHandlers(); | ||
190 | m_scene.EventManager.TriggerOnDeregisterCaps(agentId, kvp.Value); | ||
191 | m_capsObjects.Remove(kvp.Key); | ||
192 | return; | ||
193 | } | ||
194 | } | ||
185 | m_log.WarnFormat( | 195 | m_log.WarnFormat( |
186 | "[CAPS]: Received request to remove CAPS handler for root agent {0} in {1}, but no such CAPS handler found!", | 196 | "[CAPS]: Received request to remove CAPS handler for root agent {0} in {1}, but no such CAPS handler found!", |
187 | agentId, m_scene.RegionInfo.RegionName); | 197 | agentId, m_scene.RegionInfo.RegionName); |