mirror of
https://github.com/opensim/opensim.git
synced 2026-07-18 05:35:36 +08:00
Remove null checks at top of LLUDPServer.ProcessInPacket(). Neither packet nor client are ever null.
This commit is contained in:
@@ -1391,13 +1391,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
Packet packet = incomingPacket.Packet;
|
||||
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)
|
||||
{
|
||||
m_currentIncomingClient = client;
|
||||
@@ -1442,4 +1435,4 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
RemoveClient(((LLClientView)client).UDPClient);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user