aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework
diff options
context:
space:
mode:
authorAdam Frisby2008-10-12 01:09:58 +0000
committerAdam Frisby2008-10-12 01:09:58 +0000
commitd7aedf343a163fad95e459b00b0cc0653e910fa8 (patch)
tree2b032db79b2d5fce28f045c31903a2838fcbee3d /OpenSim/Framework
parentFix LSL bitwise Or (diff)
downloadopensim-SC_OLD-d7aedf343a163fad95e459b00b0cc0653e910fa8.zip
opensim-SC_OLD-d7aedf343a163fad95e459b00b0cc0653e910fa8.tar.gz
opensim-SC_OLD-d7aedf343a163fad95e459b00b0cc0653e910fa8.tar.bz2
opensim-SC_OLD-d7aedf343a163fad95e459b00b0cc0653e910fa8.tar.xz
* Small fix for when PacketPool is disabled to prevent it from crashing immedietly.
Diffstat (limited to 'OpenSim/Framework')
-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);