Applying the real fix (thank you for tracking that MSDN doc down Melanie)

prioritization
John Hurliman 2009-10-06 15:08:09 -07:00
parent 74fe284a20
commit 9cb5db3621
1 changed files with 6 additions and 5 deletions

View File

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