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

0.6.0-stable
Adam Frisby 2008-10-12 01:12:07 +00:00
parent d7aedf343a
commit 765fc6c289
1 changed files with 3 additions and 0 deletions

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)