diff options
author | Melanie Thielker | 2008-10-12 01:16:35 +0000 |
---|---|---|
committer | Melanie Thielker | 2008-10-12 01:16:35 +0000 |
commit | 166690d539220f68929acb602341c1f4f1be3a44 (patch) | |
tree | 70a229ff457a39e0cf3acacf198fea883ab058ec /OpenSim | |
parent | * Removed a lock in a high performance section of OpenSim, in cases when it i... (diff) | |
download | opensim-SC_OLD-166690d539220f68929acb602341c1f4f1be3a44.zip opensim-SC_OLD-166690d539220f68929acb602341c1f4f1be3a44.tar.gz opensim-SC_OLD-166690d539220f68929acb602341c1f4f1be3a44.tar.bz2 opensim-SC_OLD-166690d539220f68929acb602341c1f4f1be3a44.tar.xz |
Add one more check for key presence
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/PacketPool.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Framework/PacketPool.cs b/OpenSim/Framework/PacketPool.cs index 9e1d56d..1b486aa 100644 --- a/OpenSim/Framework/PacketPool.cs +++ b/OpenSim/Framework/PacketPool.cs | |||
@@ -142,7 +142,7 @@ namespace OpenSim.Framework | |||
142 | { | 142 | { |
143 | PacketType type = packet.Type; | 143 | PacketType type = packet.Type; |
144 | 144 | ||
145 | if (pool[type] == null) | 145 | if (!pool.ContainsKey(type)) |
146 | { | 146 | { |
147 | pool[type] = new Stack<Packet>(); | 147 | pool[type] = new Stack<Packet>(); |
148 | } | 148 | } |