Trying Melanie's fix

prioritization
John Hurliman 2009-10-06 14:50:46 -07:00
parent c855806548
commit 74fe284a20
1 changed files with 4 additions and 3 deletions

View File

@ -111,11 +111,12 @@ namespace OpenSim.Region.ClientStack.LindenUDP
{ {
lock (SyncRoot) lock (SyncRoot)
{ {
if (packets.Count == 0) OutgoingPacket p;
return null;
using (SortedDictionary<uint, OutgoingPacket>.ValueCollection.Enumerator e = packets.Values.GetEnumerator()) using (SortedDictionary<uint, OutgoingPacket>.ValueCollection.Enumerator e = packets.Values.GetEnumerator())
return e.Current; p = e.Current;
return p;
} }
} }