aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r--OpenSim/Framework/PacketPool.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/OpenSim/Framework/PacketPool.cs b/OpenSim/Framework/PacketPool.cs
index fc4a53b..9e1d56d 100644
--- a/OpenSim/Framework/PacketPool.cs
+++ b/OpenSim/Framework/PacketPool.cs
@@ -53,6 +53,9 @@ namespace OpenSim.Framework
53 { 53 {
54 Packet packet; 54 Packet packet;
55 55
56 if (!packetPoolEnabled)
57 return Packet.BuildPacket(type);
58
56 lock (pool) 59 lock (pool)
57 { 60 {
58 if (!pool.ContainsKey(type) || pool[type] == null || (pool[type]).Count == 0) 61 if (!pool.ContainsKey(type) || pool[type] == null || (pool[type]).Count == 0)