mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +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);
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user