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:
parent
dd41080a99
commit
8ad14255e1
1 changed files with 0 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue