Applying the real fix (thank you for tracking that MSDN doc down Melanie)
parent
74fe284a20
commit
9cb5db3621
|
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue