* Small fix for when PacketPool is disabled to prevent it from crashing immedietly.

0.6.0-stable
Adam Frisby 2008-10-12 01:09:58 +00:00
parent 11477db59e
commit d7aedf343a
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -144,7 +144,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
/// <param name="port"></param>
/// <param name="proxyPortOffsetParm"></param>
/// <param name="allow_alternate_port"></param>
/// <param name="settings"></param>
/// <param name="userSettings"></param>
/// <param name="assetCache"></param>
/// <param name="circuitManager"></param>
public void Initialise(