Skip to content

Commit

Permalink
Don't disable process freeze in config on Windows, simply ignore setting
Browse files Browse the repository at this point in the history
  • Loading branch information
timvisee committed Jan 30, 2023
1 parent bc7bd90 commit 4b1857f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion res/lazymc.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ directory = "."
command = "java -Xmx1G -Xms1G -jar server.jar --nogui"

# 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

# Immediately wake server when starting lazymc.
Expand Down
7 changes: 0 additions & 7 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 4b1857f

Please sign in to comment.