Skip to content

Commit 49ed0ca

Browse files
authoredApr 25, 2020
Ensure game is shutdown if server throws exception (#9742)
1 parent 6cc5c7c commit 49ed0ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/client/game.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -4284,7 +4284,6 @@ void the_game(bool *kill,
42844284
reconnect_requested, &chat_backend, gamespec,
42854285
simple_singleplayer_mode)) {
42864286
game.run();
4287-
game.shutdown();
42884287
}
42894288

42904289
} catch (SerializationError &e) {
@@ -4300,4 +4299,5 @@ void the_game(bool *kill,
43004299
strgettext("\nCheck debug.txt for details.");
43014300
errorstream << error_message << std::endl;
43024301
}
4302+
game.shutdown();
43034303
}

0 commit comments

Comments
 (0)
Please sign in to comment.