diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ClientStack/LindenUDP/UnackedPacketCollection.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/UnackedPacketCollection.cs b/OpenSim/Region/ClientStack/LindenUDP/UnackedPacketCollection.cs index e43f7cf..194c064 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/UnackedPacketCollection.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/UnackedPacketCollection.cs | |||
@@ -140,13 +140,13 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
140 | { | 140 | { |
141 | // Process all the pending adds | 141 | // Process all the pending adds |
142 | OutgoingPacket pendingAdd; | 142 | OutgoingPacket pendingAdd; |
143 | while (m_pendingAdds.Dequeue(out pendingAdd)) | 143 | while (m_pendingAdds.TryDequeue(out pendingAdd)) |
144 | m_packets[pendingAdd.SequenceNumber] = pendingAdd; | 144 | m_packets[pendingAdd.SequenceNumber] = pendingAdd; |
145 | 145 | ||
146 | // Process all the pending removes, including updating statistics and round-trip times | 146 | // Process all the pending removes, including updating statistics and round-trip times |
147 | PendingAck pendingRemove; | 147 | PendingAck pendingRemove; |
148 | OutgoingPacket ackedPacket; | 148 | OutgoingPacket ackedPacket; |
149 | while (m_pendingRemoves.Dequeue(out pendingRemove)) | 149 | while (m_pendingRemoves.TryDequeue(out pendingRemove)) |
150 | { | 150 | { |
151 | if (m_packets.TryGetValue(pendingRemove.SequenceNumber, out ackedPacket)) | 151 | if (m_packets.TryGetValue(pendingRemove.SequenceNumber, out ackedPacket)) |
152 | { | 152 | { |