aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/PacketPool.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/PacketPool.cs')
-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 597375c..fc4a53b 100644
--- a/OpenSim/Framework/PacketPool.cs
+++ b/OpenSim/Framework/PacketPool.cs
@@ -55,7 +55,7 @@ namespace OpenSim.Framework
55 55
56 lock (pool) 56 lock (pool)
57 { 57 {
58 if (pool[type] == null || (pool[type]).Count == 0) 58 if (!pool.ContainsKey(type) || pool[type] == null || (pool[type]).Count == 0)
59 { 59 {
60 // Creating a new packet if we cannot reuse an old package 60 // Creating a new packet if we cannot reuse an old package
61 packet = Packet.BuildPacket(type); 61 packet = Packet.BuildPacket(type);