Don't disable process freeze in config on Windows, simply ignore setting

This commit is contained in:
timvisee 2023-01-30 17:57:49 +01:00
parent bc7bd908f6
commit 4b1857f48d
No known key found for this signature in database
GPG Key ID: B8DB720BC383E172
2 changed files with 1 additions and 8 deletions

View File

@ -34,7 +34,7 @@ directory = "."
command = "java -Xmx1G -Xms1G -jar server.jar --nogui" command = "java -Xmx1G -Xms1G -jar server.jar --nogui"
# Freeze the server process instead of restarting it when no players online, making it resume faster. # Freeze the server process instead of restarting it when no players online, making it resume faster.
# Only works on Unix (Linux or MacOS) # Only works on Unix (Linux or MacOS), ignored on Windows
#freeze_process = true #freeze_process = true
# Immediately wake server when starting lazymc. # Immediately wake server when starting lazymc.

View File

@ -57,13 +57,6 @@ pub fn load(matches: &ArgMatches) -> Config {
} }
}; };
// TODO better way to do this
#[cfg(windows)]
{
// Don't try to use unix APIs on windows
config.server.freeze_process = false;
}
config config
} }