Wesnothd: fixed outdated game list being erroneously sent to clients on game close

When a host canceled a game and returned to the lobby, they would see their just-closed game briefly
appear in the game list before disappearing again. Upon debugging, I found that the client was receiving
gamelist data that included the closed game. A game-was-deleted diff entry is still sent by cleanup_game.
This commit is contained in:
Charles Dang 2017-12-15 22:19:14 +11:00
parent dd41080a99
commit 8ad14255e1

View file

@ -2691,7 +2691,6 @@ void server::delete_game(int gameid) {
for (const titer& it : range_vctor) {
player_connections_.get<game_t>().modify(it, player_record::enter_lobby);
}
game_ptr->send_data(games_and_users_list_);
}
void server::update_game_in_lobby(const wesnothd::game& g, const socket_ptr& exclude)