Move spectators to lobby before closing a game.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user