mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Server: move shutdown parts to a specific shutdown state object (#7437)
* Server: move shutdown parts to a specific shutdown state object
This commit is contained in:
parent
10634f0443
commit
9a1d3584c2
7 changed files with 296 additions and 137 deletions
|
@ -870,6 +870,7 @@ static bool run_dedicated_server(const GameParams &game_params, const Settings &
|
|||
// Create server
|
||||
Server server(game_params.world_path, game_params.game_spec,
|
||||
false, bind_addr, true, &iface);
|
||||
server.init();
|
||||
|
||||
g_term_console.setup(&iface, &kill, admin_nick);
|
||||
|
||||
|
@ -904,6 +905,7 @@ static bool run_dedicated_server(const GameParams &game_params, const Settings &
|
|||
// Create server
|
||||
Server server(game_params.world_path, game_params.game_spec, false,
|
||||
bind_addr, true);
|
||||
server.init();
|
||||
server.start();
|
||||
|
||||
// Run server
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue