Add one more check for key presence
parent
765fc6c289
commit
166690d539
|
@ -142,7 +142,7 @@ namespace OpenSim.Framework
|
|||
{
|
||||
PacketType type = packet.Type;
|
||||
|
||||
if (pool[type] == null)
|
||||
if (!pool.ContainsKey(type))
|
||||
{
|
||||
pool[type] = new Stack<Packet>();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue