Skip to content

Commit

Permalink
Don't finalize the session if the client is still connected after log…
Browse files Browse the repository at this point in the history
…out.

Fixes cmangos/issues#945
  • Loading branch information
Fabian committed Aug 29, 2016
1 parent 9080af5 commit 3cd5c15
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/game/WorldSession.cpp
Expand Up @@ -307,10 +307,11 @@ bool WorldSession::Update(PacketFilter& updater)
const time_t currTime = time(nullptr);

if (m_Socket->IsClosed() || (ShouldLogOut(currTime) && !m_playerLoading))
{
LogoutPlayer(true);

// finalize the session if disconnected.
if (m_Socket->IsClosed())
return false;
}
}

return true;
Expand Down

0 comments on commit 3cd5c15

Please sign in to comment.