Guard against a bad login leaving us with a null queue

avinationmerge
Melanie 2011-08-09 20:55:06 +02:00
parent 434091d3f4
commit 0e9dda91cb
1 changed files with 1 additions and 1 deletions

View File

@ -521,7 +521,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
// No dequeued packet waiting to be sent, try to pull one off
// this queue
queue = m_packetOutboxes[i];
if (queue.Dequeue(out packet))
if (queue != null && queue.Dequeue(out packet))
{
// A packet was pulled off the queue. See if we have
// enough tokens in the bucket to send it out