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)
{
OutgoingPacket p;
using (SortedDictionary<uint, OutgoingPacket>.ValueCollection.Enumerator e = packets.Values.GetEnumerator())
p = e.Current;
return p;
{
if (e.MoveNext())
return e.Current;
else
return null;
}
}
}