mirror of
https://github.com/mbround18/valheim-docker.git
synced 2021-10-22 21:53:54 +03:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user