From d137d4b907aa2fc66ec21d9f9d6eca793af86520 Mon Sep 17 00:00:00 2001
From: Justin Clarke Casey
Date: Mon, 17 Mar 2008 18:16:36 +0000
Subject: * DEV: Remove client's CAPS handlers object when they log out
---
OpenSim/Region/Environment/Scenes/Scene.cs | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
(limited to 'OpenSim/Region/Environment/Scenes')
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs
index 9466ab9..a477468 100644
--- a/OpenSim/Region/Environment/Scenes/Scene.cs
+++ b/OpenSim/Region/Environment/Scenes/Scene.cs
@@ -1431,7 +1431,7 @@ namespace OpenSim.Region.Environment.Scenes
}
///
- ///
+ /// Remove the given presence from the scene.
///
///
public override void RemoveClient(LLUUID agentID)
@@ -1461,6 +1461,11 @@ namespace OpenSim.Region.Environment.Scenes
childknownRegions.Add(ckn[i]);
}
m_sceneGridService.SendCloseChildAgentConnections(agentID, childknownRegions);
+
+ if (m_capsHandlers.ContainsKey(agentID))
+ {
+ m_capsHandlers.Remove(agentID);
+ }
}
m_eventManager.TriggerClientClosed(agentID);
--
cgit v1.1