aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorMelanie Thielker2008-10-12 01:16:35 +0000
committerMelanie Thielker2008-10-12 01:16:35 +0000
commit166690d539220f68929acb602341c1f4f1be3a44 (patch)
tree70a229ff457a39e0cf3acacf198fea883ab058ec /OpenSim
parent* Removed a lock in a high performance section of OpenSim, in cases when it i... (diff)
downloadopensim-SC-166690d539220f68929acb602341c1f4f1be3a44.zip
opensim-SC-166690d539220f68929acb602341c1f4f1be3a44.tar.gz
opensim-SC-166690d539220f68929acb602341c1f4f1be3a44.tar.bz2
opensim-SC-166690d539220f68929acb602341c1f4f1be3a44.tar.xz
Add one more check for key presence
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Framework/PacketPool.cs2
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 }