mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
Ensure game is shutdown if server throws exception (#9742)
This commit is contained in:
@@ -4284,7 +4284,6 @@ void the_game(bool *kill,
|
|||||||
reconnect_requested, &chat_backend, gamespec,
|
reconnect_requested, &chat_backend, gamespec,
|
||||||
simple_singleplayer_mode)) {
|
simple_singleplayer_mode)) {
|
||||||
game.run();
|
game.run();
|
||||||
game.shutdown();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (SerializationError &e) {
|
} catch (SerializationError &e) {
|
||||||
@@ -4300,4 +4299,5 @@ void the_game(bool *kill,
|
|||||||
strgettext("\nCheck debug.txt for details.");
|
strgettext("\nCheck debug.txt for details.");
|
||||||
errorstream << error_message << std::endl;
|
errorstream << error_message << std::endl;
|
||||||
}
|
}
|
||||||
|
game.shutdown();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user