mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
* Small fix for when PacketPool is disabled to prevent it from crashing immedietly.
This commit is contained in:
@@ -55,7 +55,7 @@ namespace OpenSim.Framework
|
||||
|
||||
lock (pool)
|
||||
{
|
||||
if (pool[type] == null || (pool[type]).Count == 0)
|
||||
if (!pool.ContainsKey(type) || pool[type] == null || (pool[type]).Count == 0)
|
||||
{
|
||||
// Creating a new packet if we cannot reuse an old package
|
||||
packet = Packet.BuildPacket(type);
|
||||
|
||||
Reference in New Issue
Block a user