From 9a0040d67c5af84defc6f40733bd0dd6a09450d6 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Wed, 19 Aug 2015 20:38:49 +0100 Subject: put back entities remove from updates on SendKillObject. --- OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/ClientStack') diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs index 226f2a1..36c3780 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs @@ -1212,7 +1212,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP // Send it sync, and async. It's not that much data // and it improves user experience just so much! - DoSendLayerData(map); +// DoSendLayerData(map); } /// @@ -1710,6 +1710,16 @@ namespace OpenSim.Region.ClientStack.LindenUDP public void SendKillObject(List localIDs) { + // think we do need this + // foreach (uint id in localIDs) + // m_log.DebugFormat("[CLIENT]: Sending KillObjectPacket to {0} for {1} in {2}", Name, id, regionHandle); + + // remove pending entities + lock (m_entityProps.SyncRoot) + m_entityProps.Remove(localIDs); + lock (m_entityUpdates.SyncRoot) + m_entityUpdates.Remove(localIDs); + KillObjectPacket kill = (KillObjectPacket)PacketPool.Instance.GetPacket(PacketType.KillObject); // TODO: don't create new blocks if recycling an old packet kill.ObjectData = new KillObjectPacket.ObjectDataBlock[localIDs.Count]; -- cgit v1.1