From c1976d12003a09159902654c2ceec994b33fdf37 Mon Sep 17 00:00:00 2001 From: Dr Scofield Date: Thu, 25 Jun 2009 11:30:31 +0000 Subject: moving the m_PendingAcksMap.Remove() out of the foreach and clearing it instead after the foreach as we are going through the whole m_PendingAcks list anyhow --- OpenSim/Region/ClientStack/LindenUDP/LLPacketHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'OpenSim') diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLPacketHandler.cs b/OpenSim/Region/ClientStack/LindenUDP/LLPacketHandler.cs index d32ed5d..7f335db 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLPacketHandler.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLPacketHandler.cs @@ -377,9 +377,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP acks.Packets[i] = new PacketAckPacket.PacketsBlock(); acks.Packets[i].ID = m_PendingAcks[i]; - m_PendingAcksMap.Remove(m_PendingAcks[i]); } m_PendingAcks.Clear(); + m_PendingAcksMap.Clear(); acks.Header.Reliable = false; OutPacket(acks, ThrottleOutPacketType.Unknown); -- cgit v1.1