mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[9520] Prevent possible memory leak in WorldSession
This commit is contained in:
parent
a142ed4848
commit
eaf5934c99
2 changed files with 2 additions and 2 deletions
|
|
@ -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)",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue