[9520] Prevent possible memory leak in WorldSession

This commit is contained in:
Derex 2010-03-05 05:46:33 +02:00
parent a142ed4848
commit eaf5934c99
2 changed files with 2 additions and 2 deletions

View file

@ -161,7 +161,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)",