* 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 shutdown0.6.0-stable
parent
e7064c0b19
commit
23ea8f5221
|
@ -645,18 +645,19 @@ 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);
|
||||
|
|
|
@ -135,7 +135,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
|||
|
||||
/* STANDARD QUEUE MANIPULATION INTERFACES */
|
||||
|
||||
|
||||
public void Enqueue(LLQueItem item)
|
||||
{
|
||||
if (!m_enabled)
|
||||
|
|
Loading…
Reference in New Issue