mirror of
https://github.com/MikaylaFischler/cc-mek-scada.git
synced 2024-08-30 18:22:34 +00:00
fixed always reporting failure to connect to supervisor even when inaccurate
This commit is contained in:
parent
8b136d78a8
commit
0d6022f5e3
@ -22,7 +22,7 @@ local sounder = require("coordinator.sounder")
|
|||||||
|
|
||||||
local apisessions = require("coordinator.session.apisessions")
|
local apisessions = require("coordinator.session.apisessions")
|
||||||
|
|
||||||
local COORDINATOR_VERSION = "v0.19.2"
|
local COORDINATOR_VERSION = "v0.19.3"
|
||||||
|
|
||||||
local println = util.println
|
local println = util.println
|
||||||
local println_ts = util.println_ts
|
local println_ts = util.println_ts
|
||||||
@ -362,7 +362,7 @@ local function main()
|
|||||||
-- check for termination request
|
-- check for termination request
|
||||||
if event == "terminate" or ppm.should_terminate() then
|
if event == "terminate" or ppm.should_terminate() then
|
||||||
-- handle supervisor connection
|
-- handle supervisor connection
|
||||||
link_failed = coord_comms.try_connect(true)
|
coord_comms.try_connect(true)
|
||||||
|
|
||||||
if coord_comms.is_linked() then
|
if coord_comms.is_linked() then
|
||||||
log_comms("terminate requested, closing supervisor connection...")
|
log_comms("terminate requested, closing supervisor connection...")
|
||||||
|
Loading…
Reference in New Issue
Block a user