diff options
author | John Hurliman | 2009-10-06 14:50:46 -0700 |
---|---|---|
committer | John Hurliman | 2009-10-06 14:50:46 -0700 |
commit | 74fe284a20976923ab9112e7c32249aa59392d5f (patch) | |
tree | 8be604e35177b0e3f074caac5c2510d96147a780 /OpenSim/Region/ClientStack | |
parent | Reverting MySQLLegacyRegionData spam (diff) | |
download | opensim-SC-74fe284a20976923ab9112e7c32249aa59392d5f.zip opensim-SC-74fe284a20976923ab9112e7c32249aa59392d5f.tar.gz opensim-SC-74fe284a20976923ab9112e7c32249aa59392d5f.tar.bz2 opensim-SC-74fe284a20976923ab9112e7c32249aa59392d5f.tar.xz |
Trying Melanie's fix
Diffstat (limited to 'OpenSim/Region/ClientStack')
-rw-r--r-- | OpenSim/Region/ClientStack/LindenUDP/UnackedPacketCollection.cs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/UnackedPacketCollection.cs b/OpenSim/Region/ClientStack/LindenUDP/UnackedPacketCollection.cs index 6ecc0c8..39882fb 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/UnackedPacketCollection.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/UnackedPacketCollection.cs | |||
@@ -111,11 +111,12 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
111 | { | 111 | { |
112 | lock (SyncRoot) | 112 | lock (SyncRoot) |
113 | { | 113 | { |
114 | if (packets.Count == 0) | 114 | OutgoingPacket p; |
115 | return null; | ||
116 | 115 | ||
117 | using (SortedDictionary<uint, OutgoingPacket>.ValueCollection.Enumerator e = packets.Values.GetEnumerator()) | 116 | using (SortedDictionary<uint, OutgoingPacket>.ValueCollection.Enumerator e = packets.Values.GetEnumerator()) |
118 | return e.Current; | 117 | p = e.Current; |
118 | |||
119 | return p; | ||
119 | } | 120 | } |
120 | } | 121 | } |
121 | 122 | ||