From 841365122fa6ee7c943b9081684d757b10f8a852 Mon Sep 17 00:00:00 2001 From: TShapinsky Date: Tue, 30 Jan 2024 14:56:49 -0700 Subject: [PATCH] fix other capitalization issue --- alfalfa_bacnet_bridge/alfalfa_watchdog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alfalfa_bacnet_bridge/alfalfa_watchdog.py b/alfalfa_bacnet_bridge/alfalfa_watchdog.py index 98c31e3..65b6ca2 100644 --- a/alfalfa_bacnet_bridge/alfalfa_watchdog.py +++ b/alfalfa_bacnet_bridge/alfalfa_watchdog.py @@ -71,7 +71,7 @@ async def main_loop(host: str, alfalfa_site: str, command: str): logger.info(f"Spawned new child process: '{child_process.pid}'") old_site_id = site_id - if site_id and is_process_alive(child_process) and client.status(site_id) != "running": + if site_id and is_process_alive(child_process) and client.status(site_id) != "RUNNING": logger.info(f"Killing old child process: '{child_process.pid}'") child_process.kill()