mirror of
https://github.com/MikaylaFischler/cc-mek-scada.git
synced 2024-08-30 18:22:34 +00:00
fixed coordinator not exiting on failed connection
This commit is contained in:
parent
612a06ba98
commit
d0b50c834c
@ -19,7 +19,7 @@ local renderer = require("coordinator.renderer")
|
|||||||
local sounder = require("coordinator.sounder")
|
local sounder = require("coordinator.sounder")
|
||||||
local threads = require("coordinator.threads")
|
local threads = require("coordinator.threads")
|
||||||
|
|
||||||
local COORDINATOR_VERSION = "v1.4.1"
|
local COORDINATOR_VERSION = "v1.4.2"
|
||||||
|
|
||||||
local CHUNK_LOAD_DELAY_S = 30.0
|
local CHUNK_LOAD_DELAY_S = 30.0
|
||||||
|
|
||||||
|
@ -133,6 +133,7 @@ function threads.thread__main(smem)
|
|||||||
local ok, start_ui = coord_comms.try_connect()
|
local ok, start_ui = coord_comms.try_connect()
|
||||||
if not ok then
|
if not ok then
|
||||||
crd_state.link_fail = true
|
crd_state.link_fail = true
|
||||||
|
crd_state.shutdown = true
|
||||||
log_sys("supervisor connection failed, shutting down...")
|
log_sys("supervisor connection failed, shutting down...")
|
||||||
log.fatal("failed to connect to supervisor")
|
log.fatal("failed to connect to supervisor")
|
||||||
break
|
break
|
||||||
|
Loading…
x
Reference in New Issue
Block a user