* Prevent possible memory leak in WorldSession (correction of order)
Fix by Derex --HG-- branch : trunk
This commit is contained in:
1 parent
52ba3d3a96
commit
e44dc0af74
1 file changed
+1
-1
@@ -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)",
|
||||
|
||||
Reference in new issue
Block a user