fixed coordinator not exiting on failed connection

This commit is contained in:
Mikayla Fischler 2024-04-10 20:49:14 -04:00
parent 612a06ba98
commit d0b50c834c
2 changed files with 2 additions and 1 deletions

View File

@ -19,7 +19,7 @@ local renderer = require("coordinator.renderer")
local sounder = require("coordinator.sounder")
local threads = require("coordinator.threads")
local COORDINATOR_VERSION = "v1.4.1"
local COORDINATOR_VERSION = "v1.4.2"
local CHUNK_LOAD_DELAY_S = 30.0

View File

@ -133,6 +133,7 @@ function threads.thread__main(smem)
local ok, start_ui = coord_comms.try_connect()
if not ok then
crd_state.link_fail = true
crd_state.shutdown = true
log_sys("supervisor connection failed, shutting down...")
log.fatal("failed to connect to supervisor")
break