Fixing game termination if an error occurs.

This commit is contained in:
lotodore
2009-07-12 09:13:49 +00:00
parent 9c1792a0f3
commit efe20f6275
+2 -1
View File
@@ -122,9 +122,10 @@ ServerGame::SendToAllPlayers(boost::shared_ptr<NetPacket> packet, SessionData::S
void
ServerGame::RemoveAllSessions()
{
// Called from lobby thread.
// Clean up ALL sessions which are left.
GetSessionManager().ForEach(boost::bind(&ServerLobbyThread::RemoveSessionFromGame, boost::ref(*m_lobbyThread), _1));
GetSessionManager().Clear();
SetState(ServerGameStateFinal::Instance());
}
void