Merge branch 'bugfix/crash-detection' into 'dev'

Reset crash detection counter after crash detection process detects successful start

See merge request crafty-controller/crafty-4!798
This commit is contained in:
Iain Powrie 2024-10-02 21:34:55 +00:00
commit 730fcf5883
2 changed files with 4 additions and 1 deletions

View File

@ -4,6 +4,7 @@
TBD TBD
### Bug fixes ### Bug fixes
- Fix logic issue causing bedrock wizard's root files buttons to not respond to user click events ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/797)) - Fix logic issue causing bedrock wizard's root files buttons to not respond to user click events ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/797))
- Reset crash detection counter after crash detection process detects successful start ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/798))
### Tweaks ### Tweaks
TBD TBD
### Lang ### Lang

View File

@ -1053,8 +1053,10 @@ class ServerInstance:
running = self.check_running() running = self.check_running()
# if all is okay, we just exit out # if all is okay, we set the restart count to 0 and just exit out
if running: if running:
Console.debug("Successfully found process. Resetting crash counter to 0")
self.restart_count = 0
return return
# check the exit code -- This could be a fix for /stop # check the exit code -- This could be a fix for /stop
if str(self.process.returncode) in self.settings["ignored_exits"].split(","): if str(self.process.returncode) in self.settings["ignored_exits"].split(","):