Kill process if rcon did not work

This commit is contained in:
zontreck 2024-05-24 18:11:00 -07:00
parent bb6fadd717
commit 6eb8d78036

View file

@ -107,6 +107,12 @@ class StateMachine {
print("Sending shutdown command to server");
await settings.sendRconCommand("shutdown");
Timer.periodic(Duration(seconds: 30), (timer) {
timer.cancel();
PROC!.kill();
});
changeState(States.Inactive);
} else if (currentState == States.Starting) {
// Server startup in progress