From 74fe284a20976923ab9112e7c32249aa59392d5f Mon Sep 17 00:00:00 2001 From: John Hurliman Date: Tue, 6 Oct 2009 14:50:46 -0700 Subject: [PATCH] Trying Melanie's fix --- .../ClientStack/LindenUDP/UnackedPacketCollection.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/OpenSim/Region/ClientStack/LindenUDP/UnackedPacketCollection.cs b/OpenSim/Region/ClientStack/LindenUDP/UnackedPacketCollection.cs index 6ecc0c80d2..39882fb294 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/UnackedPacketCollection.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/UnackedPacketCollection.cs @@ -111,11 +111,12 @@ namespace OpenSim.Region.ClientStack.LindenUDP { lock (SyncRoot) { - if (packets.Count == 0) - return null; + OutgoingPacket p; using (SortedDictionary.ValueCollection.Enumerator e = packets.Values.GetEnumerator()) - return e.Current; + p = e.Current; + + return p; } }