* Prevent possible memory leak in WorldSession (correction of order)

Fix by Derex

--HG--
branch : trunk
This commit is contained in:
click
2010-04-12 14:24:10 +02:00
parent 52ba3d3a96
commit e44dc0af74

View File

@@ -173,7 +173,7 @@ bool WorldSession::Update(uint32 /*diff*/)
///- Retrieve packets from the receive queue and call the appropriate handlers
/// not proccess packets if socket already closed
WorldPacket* packet;
while (_recvQueue.next(packet) && m_Socket && !m_Socket->IsClosed ())
while (m_Socket && !m_Socket->IsClosed() && _recvQueue.next(packet))
{
/*#if 1
sLog.outError("MOEP: %s (0x%.4X)",