mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user