Skip to content

Commit

Permalink
Ensure game is shutdown if server throws exception (#9742)
Browse files Browse the repository at this point in the history
  • Loading branch information
p-ouellette committed Apr 25, 2020
1 parent 6cc5c7c commit 49ed0ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/game.cpp
Expand Up @@ -4284,7 +4284,6 @@ void the_game(bool *kill,
reconnect_requested, &chat_backend, gamespec,
simple_singleplayer_mode)) {
game.run();
game.shutdown();
}

} catch (SerializationError &e) {
Expand All @@ -4300,4 +4299,5 @@ void the_game(bool *kill,
strgettext("\nCheck debug.txt for details.");
errorstream << error_message << std::endl;
}
game.shutdown();
}

0 comments on commit 49ed0ca

Please sign in to comment.