Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Ensure game is shutdown if server throws exception (#9742)
- Loading branch information
Showing
with
1 addition
and
1 deletion.
-
+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(); |
|
|
} |