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
0.6.6-post-fixes
Dr Scofield 2009-06-25 11:30:31 +00:00
parent aba4b0bd20
commit c1976d1200
1 changed files with 1 additions and 1 deletions

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