mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
* refactor: remove unnecessary packet null check in LLClientView
* if a packet was really null it would be caught by the general exception handler at the top of the client thread, which would also provide more information and attempt a clean shutdown
This commit is contained in:
@@ -645,23 +645,24 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Main packet processing loop for the UDP component of the client session. Both incoming and outgoing
|
||||
/// packets are processed here.
|
||||
/// </summary>
|
||||
protected virtual void ClientLoop()
|
||||
{
|
||||
m_log.Info("[CLIENT]: Entered main packet processing loop");
|
||||
m_log.DebugFormat(
|
||||
"[CLIENT]: Entered main packet processing loop for {0} {1}", FirstName, LastName);
|
||||
|
||||
while (true)
|
||||
{
|
||||
LLQueItem nextPacket = m_PacketHandler.PacketQueue.Dequeue();
|
||||
if (nextPacket == null)
|
||||
{
|
||||
m_log.Error("Got a NULL packet in Client Loop, bailing out of our client loop");
|
||||
break;
|
||||
}
|
||||
|
||||
if (nextPacket.Incoming)
|
||||
{
|
||||
DebugPacket("IN", nextPacket.Packet);
|
||||
m_PacketHandler.ProcessInPacket(nextPacket);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
DebugPacket("OUT", nextPacket.Packet);
|
||||
|
||||
Reference in New Issue
Block a user