mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 22:37:02 +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
|
///- Retrieve packets from the receive queue and call the appropriate handlers
|
||||||
/// not proccess packets if socket already closed
|
/// not proccess packets if socket already closed
|
||||||
WorldPacket* packet;
|
WorldPacket* packet;
|
||||||
while (_recvQueue.next(packet) && m_Socket && !m_Socket->IsClosed ())
|
while (m_Socket && !m_Socket->IsClosed() && _recvQueue.next(packet))
|
||||||
{
|
{
|
||||||
/*#if 1
|
/*#if 1
|
||||||
sLog.outError( "MOEP: %s (0x%.4X)",
|
sLog.outError( "MOEP: %s (0x%.4X)",
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "9519"
|
#define REVISION_NR "9520"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue