make a new termination category "not started" to differentiate aborted games

This commit is contained in:
Gunter Labes 2008-02-07 09:38:50 +00:00
parent 7985ce4b97
commit ed39d5b27f

View file

@ -1252,7 +1252,11 @@ void server::process_data_game(const network::connection sock, const config& dat
}
void server::delete_game(std::vector<game>::iterator game_it) {
metrics_.game_terminated(game_it->termination_reason());
if (game_it->started()) {
metrics_.game_terminated(game_it->termination_reason());
} else {
metrics_.game_terminated("not started");
}
// Delete the game from the games_and_users_list_.
config* const gamelist = games_and_users_list_.child("gamelist");
assert(gamelist != NULL);