This commit is contained in:
TheLuda 2008-10-15 18:26:08 +02:00
parent 5d294f0ad2
commit adc46ef907
23 changed files with 335 additions and 337 deletions

View file

@ -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);
}
}