Skip to content
Permalink
Browse files

Ensure game is shutdown if server throws exception (#9742)

  • Loading branch information
pauloue committed Apr 25, 2020
1 parent 6cc5c7c commit 49ed0ca00a9a79b5db0bd6cc4589d56d7f1b3d45
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/client/game.cpp
@@ -4284,7 +4284,6 @@ void the_game(bool *kill,
reconnect_requested, &chat_backend, gamespec,
simple_singleplayer_mode)) {
game.run();
game.shutdown();
}

} catch (SerializationError &e) {
@@ -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.
You can’t perform that action at this time.