mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 02:04:52 +01:00
* Prevent possible memory leak in WorldSession (correction of order)
Fix by Derex --HG-- branch : trunk
This commit is contained in:
@@ -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