Move spectators to lobby before closing a game.

This commit is contained in:
lotodore
2013-10-05 12:49:21 +02:00
parent 3710f94c1e
commit bc7f34a2a6
9 changed files with 37 additions and 2 deletions
+1
View File
@@ -1835,6 +1835,7 @@ ServerLobbyThread::TimerRemoveGame(const boost::system::error_code &ec)
++next;
boost::shared_ptr<ServerGame> tmpGame = i->second;
if (!tmpGame->GetSessionManager().HasSessionWithState(SessionData::Game))
tmpGame->MoveSpectatorsToLobby();
InternalRemoveGame(tmpGame); // This will delete the game.
i = next;
}