From 73fbacea1fe18873fab175d82189a1becb0f8e10 Mon Sep 17 00:00:00 2001 From: MW Date: Mon, 5 Nov 2007 13:58:44 +0000 Subject: Started to cleanup/close down childagent connections when a user teleports. As the client will not close old childagent connections without being told explicitly to do so by each region the connection is to. Currently only implemented in standalone mode. ( the TellRegionToCloseChildConnection( ) in OGS1GridServices.cs needs implementing for grid mode, and the inter region .net remoting added for the new messages). hopefully fixed the echo bug in chatmodule. --- OpenSim/Region/Environment/Scenes/ScenePresence.cs | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'OpenSim/Region/Environment/Scenes/ScenePresence.cs') diff --git a/OpenSim/Region/Environment/Scenes/ScenePresence.cs b/OpenSim/Region/Environment/Scenes/ScenePresence.cs index 628921c..49e3c39 100644 --- a/OpenSim/Region/Environment/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Environment/Scenes/ScenePresence.cs @@ -232,6 +232,10 @@ namespace OpenSim.Region.Environment.Scenes set { m_parentID = value; } } + public List KnownChildRegions + { + get { return m_KnownChildRegions; } + } #endregion #region Constructor(s) @@ -411,6 +415,13 @@ namespace OpenSim.Region.Environment.Scenes } } + public void RemoveNeighbourRegion(ulong regionHandle) + { + if (!m_KnownChildRegions.Contains(regionHandle)) + { + m_KnownChildRegions.Remove(regionHandle); + } + } #endregion #region Event Handlers @@ -1090,9 +1101,8 @@ namespace OpenSim.Region.Environment.Scenes public void SetWearable(int wearableId, AvatarWearable wearable) { m_wearables[wearableId] = wearable; - m_controllingClient.SendWearables(m_wearables, m_wearablesSerial++); - SendOurAppearance( m_controllingClient ); - + m_controllingClient.SendWearables(m_wearables, ++m_wearablesSerial); + //m_controllingClient.SendWearables(m_wearables, m_wearablesSerial++); } } } \ No newline at end of file -- cgit v1.1