mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Fix traceback on crash detection startup
This commit is contained in:
parent
e644380b64
commit
55f7ab1d35
@ -541,9 +541,12 @@ class ServerInstance:
|
||||
f"Server {self.name} has crash detection enabled "
|
||||
"- starting watcher task"
|
||||
)
|
||||
try:
|
||||
self.server_scheduler.add_job(
|
||||
self.detect_crash, "interval", seconds=30, id=f"c_{self.server_id}"
|
||||
)
|
||||
except:
|
||||
logger.info(f"Job with id c_{self.server_id} already running...")
|
||||
|
||||
def stop_threaded_server(self):
|
||||
self.stop_server()
|
||||
|
Loading…
Reference in New Issue
Block a user