Remove null checks at top of LLUDPServer.ProcessInPacket(). Neither packet nor client are ever null.

0.7.4.1
Justin Clark-Casey (justincc) 2012-06-08 01:51:28 +01:00
parent d71c6dea7e
commit d73805d7f4
1 changed files with 1 additions and 8 deletions

View File

@ -1391,13 +1391,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP
Packet packet = incomingPacket.Packet; Packet packet = incomingPacket.Packet;
LLClientView client = incomingPacket.Client; LLClientView client = incomingPacket.Client;
// Sanity check
if (packet == null || client == null)
{
m_log.WarnFormat("[LLUDPSERVER]: Processing a packet with incomplete state. Packet=\"{0}\", Client=\"{1}\"",
packet, client);
}
if (client.IsActive) if (client.IsActive)
{ {
m_currentIncomingClient = client; m_currentIncomingClient = client;
@ -1442,4 +1435,4 @@ namespace OpenSim.Region.ClientStack.LindenUDP
RemoveClient(((LLClientView)client).UDPClient); RemoveClient(((LLClientView)client).UDPClient);
} }
} }
} }