mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
* Removed a lock in a high performance section of OpenSim, in cases when it is not necessary.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user