From 166690d539220f68929acb602341c1f4f1be3a44 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Sun, 12 Oct 2008 01:16:35 +0000 Subject: Add one more check for key presence --- OpenSim/Framework/PacketPool.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { PacketType type = packet.Type; - if (pool[type] == null) + if (!pool.ContainsKey(type)) { pool[type] = new Stack(); } -- cgit v1.1