aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Ouellette <oue.paul18@gmail.com>2020-04-25 03:42:18 -0400
committerGitHub <noreply@github.com>2020-04-25 09:42:18 +0200
commit49ed0ca00a9a79b5db0bd6cc4589d56d7f1b3d45 (patch)
tree474ee95ebe52c0d6f68e52e73210f921ff3b010e /src
parent6cc5c7cbb489a429009e769a958f07da33a9d2ca (diff)
downloadminetest-49ed0ca00a9a79b5db0bd6cc4589d56d7f1b3d45.tar.gz
minetest-49ed0ca00a9a79b5db0bd6cc4589d56d7f1b3d45.tar.bz2
minetest-49ed0ca00a9a79b5db0bd6cc4589d56d7f1b3d45.zip
Ensure game is shutdown if server throws exception (#9742)
Diffstat (limited to 'src')
-rw-r--r--src/client/game.cpp2
1 files changed, 1 insertions, 1 deletions
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();
}