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
This commit is contained in:
Dr Scofield
2009-06-25 11:30:31 +00:00
parent aba4b0bd20
commit c1976d1200

View File

@@ -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);