diff options
author | John Hurliman | 2009-10-06 15:08:09 -0700 |
---|---|---|
committer | John Hurliman | 2009-10-06 15:08:09 -0700 |
commit | 9cb5db362123dda7d10ce2500926e2d3db9765f9 (patch) | |
tree | 24ea7809c0f45ce1a79dab500d21589b1ee12bb2 | |
parent | Trying Melanie's fix (diff) | |
download | opensim-SC_OLD-9cb5db362123dda7d10ce2500926e2d3db9765f9.zip opensim-SC_OLD-9cb5db362123dda7d10ce2500926e2d3db9765f9.tar.gz opensim-SC_OLD-9cb5db362123dda7d10ce2500926e2d3db9765f9.tar.bz2 opensim-SC_OLD-9cb5db362123dda7d10ce2500926e2d3db9765f9.tar.xz |
Applying the real fix (thank you for tracking that MSDN doc down Melanie)
-rw-r--r-- | OpenSim/Region/ClientStack/LindenUDP/UnackedPacketCollection.cs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/UnackedPacketCollection.cs b/OpenSim/Region/ClientStack/LindenUDP/UnackedPacketCollection.cs index 39882fb..195ca57 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/UnackedPacketCollection.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/UnackedPacketCollection.cs | |||
@@ -111,12 +111,13 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
111 | { | 111 | { |
112 | lock (SyncRoot) | 112 | lock (SyncRoot) |
113 | { | 113 | { |
114 | OutgoingPacket p; | ||
115 | |||
116 | using (SortedDictionary<uint, OutgoingPacket>.ValueCollection.Enumerator e = packets.Values.GetEnumerator()) | 114 | using (SortedDictionary<uint, OutgoingPacket>.ValueCollection.Enumerator e = packets.Values.GetEnumerator()) |
117 | p = e.Current; | 115 | { |
118 | 116 | if (e.MoveNext()) | |
119 | return p; | 117 | return e.Current; |
118 | else | ||
119 | return null; | ||
120 | } | ||
120 | } | 121 | } |
121 | } | 122 | } |
122 | 123 | ||