Move spectators to lobby before closing a game.
This commit is contained in:
1 parent
3710f94c1e
commit
bc7f34a2a6
9 files changed
+37
-2
No files matched your search
@@ -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