Skip to content

Commit

Permalink
catch exceptions thrown from server/game dtor
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeck88 committed Jun 8, 2014
1 parent 29cce9c commit db09f88
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/server/game.cpp
Expand Up @@ -83,13 +83,15 @@ game::game(player_map& players, const network::connection host,

game::~game()
{
try {
save_replay();

user_vector users = all_game_users();
for (user_vector::const_iterator u = users.begin(); u != users.end(); ++u) {
remove_player(*u, false, true);
}
clear_history();
} catch (...) {}
}

bool game::allow_observers() const {
Expand Down

0 comments on commit db09f88

Please sign in to comment.