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 anyhow0.6.6-post-fixes
parent
aba4b0bd20
commit
c1976d1200
|
@ -377,9 +377,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
acks.Packets[i] = new PacketAckPacket.PacketsBlock();
|
acks.Packets[i] = new PacketAckPacket.PacketsBlock();
|
||||||
acks.Packets[i].ID = m_PendingAcks[i];
|
acks.Packets[i].ID = m_PendingAcks[i];
|
||||||
|
|
||||||
m_PendingAcksMap.Remove(m_PendingAcks[i]);
|
|
||||||
}
|
}
|
||||||
m_PendingAcks.Clear();
|
m_PendingAcks.Clear();
|
||||||
|
m_PendingAcksMap.Clear();
|
||||||
|
|
||||||
acks.Header.Reliable = false;
|
acks.Header.Reliable = false;
|
||||||
OutPacket(acks, ThrottleOutPacketType.Unknown);
|
OutPacket(acks, ThrottleOutPacketType.Unknown);
|
||||||
|
|
Loading…
Reference in New Issue