mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 19:37:03 +00:00
Applied new coding standard, see http://github.com/mangos/mangos/wikis/codingstandards for more.
This commit is contained in:
parent
5d294f0ad2
commit
adc46ef907
23 changed files with 335 additions and 337 deletions
|
|
@ -64,7 +64,7 @@ WorldSession::~WorldSession()
|
|||
/// - If have unclosed socket, close it
|
||||
if (m_Socket)
|
||||
{
|
||||
m_Socket->CloseSocket ();
|
||||
m_Socket->CloseSocket ();
|
||||
m_Socket->RemoveReference ();
|
||||
m_Socket = NULL;
|
||||
}
|
||||
|
|
@ -75,7 +75,7 @@ WorldSession::~WorldSession()
|
|||
WorldPacket *packet = _recvQueue.next();
|
||||
delete packet;
|
||||
}
|
||||
|
||||
|
||||
sWorld.RemoveQueuedPlayer(this);
|
||||
}
|
||||
|
||||
|
|
@ -156,11 +156,11 @@ bool WorldSession::Update(uint32 /*diff*/)
|
|||
{
|
||||
if (m_Socket)
|
||||
if (m_Socket->IsClosed ())
|
||||
{
|
||||
{
|
||||
m_Socket->RemoveReference ();
|
||||
m_Socket = NULL;
|
||||
}
|
||||
|
||||
|
||||
WorldPacket *packet;
|
||||
|
||||
///- Retrieve packets from the receive queue and call the appropriate handlers
|
||||
|
|
@ -507,5 +507,3 @@ void WorldSession::SendAuthWaitQue(uint32 position)
|
|||
SendPacket(&packet);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue