mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2025-01-18 17:15:13 +01:00
Reset crash detection counter after 30 seconds of running
This commit is contained in:
parent
d145dd595b
commit
8a957a3fcf
@ -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(","):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user