fix: running logic

This commit is contained in:
wznln
2025-05-01 17:42:46 +08:00
parent 9eb271f64e
commit 2b428080e7
7 changed files with 25 additions and 17 deletions

View File

@@ -29,7 +29,9 @@ def start_backend(
backend_thread = threading.Thread(
target=main if not without_host else slave,
args=(devices_config, resources_config, graph, controllers_config, bridges)
args=(devices_config, resources_config, graph, controllers_config, bridges),
name="backend_thread",
daemon=True,
)
backend_thread.start()
logger.info(f"Backend {backend} started.")