[Odin] Fix shutdown procedure finishing too early (#448)

PR https://github.com/mbround18/valheim-docker/pull/441 introduced
a bug that leads to odin not waiting until the server is shut down completely.
This commit is contained in:
Finomnis
2021-09-20 00:03:46 +02:00
committed by GitHub
parent 42edbee8c0
commit a14dc19313

View File

@@ -35,7 +35,7 @@ fn wait_for_exit() {
info!("Waiting for server to completely shutdown...");
let mut server_process = ServerProcess::new();
loop {
if server_process.is_running() {
if !server_process.is_running() {
break;
} else {
// Delay to keep down CPU usage