* Small fix for when PacketPool is disabled to prevent it from crashing immedietly.
parent
11477db59e
commit
d7aedf343a
|
@ -55,7 +55,7 @@ namespace OpenSim.Framework
|
||||||
|
|
||||||
lock (pool)
|
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
|
// Creating a new packet if we cannot reuse an old package
|
||||||
packet = Packet.BuildPacket(type);
|
packet = Packet.BuildPacket(type);
|
||||||
|
|
|
@ -144,7 +144,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
/// <param name="port"></param>
|
/// <param name="port"></param>
|
||||||
/// <param name="proxyPortOffsetParm"></param>
|
/// <param name="proxyPortOffsetParm"></param>
|
||||||
/// <param name="allow_alternate_port"></param>
|
/// <param name="allow_alternate_port"></param>
|
||||||
/// <param name="settings"></param>
|
/// <param name="userSettings"></param>
|
||||||
/// <param name="assetCache"></param>
|
/// <param name="assetCache"></param>
|
||||||
/// <param name="circuitManager"></param>
|
/// <param name="circuitManager"></param>
|
||||||
public void Initialise(
|
public void Initialise(
|
||||||
|
|
Loading…
Reference in New Issue