From 69fe246fcc19ab75a905c037e169be03eb638d73 Mon Sep 17 00:00:00 2001 From: diva Date: Mon, 22 Dec 2008 06:56:47 +0000 Subject: Removing the region where the agent is in from the list of regions to close child agents. --- OpenSim/Region/Environment/Scenes/Scene.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index 5bc416f..c359e4a 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs @@ -2558,7 +2558,9 @@ namespace OpenSim.Region.Environment.Scenes //{ // childknownRegions.Add(ckn[i]); //} - m_sceneGridService.SendCloseChildAgentConnections(agentID, avatar.KnownChildRegionHandles); + List regions = new List(avatar.KnownChildRegionHandles); + regions.Remove(RegionInfo.RegionHandle); + m_sceneGridService.SendCloseChildAgentConnections(agentID, regions); } m_eventManager.TriggerClientClosed(agentID); @@ -2725,11 +2727,12 @@ namespace OpenSim.Region.Environment.Scenes { m_log.DebugFormat("[CONNECTION DEBUGGING]: Updated agent {0} in {1}", agent.AgentID, RegionInfo.RegionName); sp.AdjustKnownSeeds(); + sp.AbsolutePosition = agent.startpos; return; } - m_log.DebugFormat("[CONNECTION DEBUGGING]: Adding NewUserConnection for {0} in {1} with CC of {2}", agent.AgentID, - RegionInfo.RegionName, agent.circuitcode); + m_log.DebugFormat("[CONNECTION DEBUGGING]: Adding NewUserConnection for {0} in {1} with CC of {2}, pos={3}", agent.AgentID, + RegionInfo.RegionName, agent.circuitcode, agent.startpos.ToString()); AddCapsHandler(agent.AgentID); -- cgit v1.1