It is possible that apacket is recieved before the clint stack is fully ready.

This causes a nullref we need to catch here.
0.6.5-rc1
Melanie Thielker 2009-04-20 17:24:09 +00:00
parent 3340217320
commit dd0fa5745e
1 changed files with 2 additions and 0 deletions

View File

@ -210,6 +210,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
int threshold;
if (m_lastloopprocessed == 0)
{
if (m_client.PacketHandler == null || m_client.PacketHandler.PacketQueue == null || m_client.PacketHandler.PacketQueue.TextureThrottle == null)
return;
//This is decent for a semi fast machine, but we'll calculate it more accurately based on time below
threshold = m_client.PacketHandler.PacketQueue.TextureThrottle.Current / 6300;
m_lastloopprocessed = DateTime.Now.Ticks;