From: Paul Ouellette Date: Sat, 25 Apr 2020 07:42:18 +0000 (-0400) Subject: Ensure game is shutdown if server throws exception (#9742) X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=49ed0ca00a9a79b5db0bd6cc4589d56d7f1b3d45;p=oweals%2Fminetest.git Ensure game is shutdown if server throws exception (#9742) --- diff --git a/src/client/game.cpp b/src/client/game.cpp index 610522dc2..3bdac786c 100644 --- a/src/client/game.cpp +++ b/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(); }