* Removed a lock in a high performance section of OpenSim, in cases when it is not necessary.

This commit is contained in:
Adam Frisby
2008-10-12 01:12:07 +00:00
parent d7aedf343a
commit 765fc6c289

View File

@@ -53,6 +53,9 @@ namespace OpenSim.Framework
{
Packet packet;
if (!packetPoolEnabled)
return Packet.BuildPacket(type);
lock (pool)
{
if (!pool.ContainsKey(type) || pool[type] == null || (pool[type]).Count == 0)