From 8b0a5d529e98e0cd3e106cc390fff6f657cf11fe Mon Sep 17 00:00:00 2001 From: Mikayla Fischler Date: Fri, 25 Aug 2023 21:02:24 -0400 Subject: [PATCH] #330 close coordinator comms on error exit --- coordinator/startup.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/coordinator/startup.lua b/coordinator/startup.lua index 3f0c769..5bbff2b 100644 --- a/coordinator/startup.lua +++ b/coordinator/startup.lua @@ -22,7 +22,7 @@ local sounder = require("coordinator.sounder") local apisessions = require("coordinator.session.apisessions") -local COORDINATOR_VERSION = "v1.0.5" +local COORDINATOR_VERSION = "v1.0.6" local println = util.println local println_ts = util.println_ts @@ -394,6 +394,9 @@ local function main() if link_failed then println_ts("failed to connect to supervisor") end if not ui_ok then println_ts("main UI creation failed") end + -- close on error exit (such as UI error) + if coord_comms.is_linked() then coord_comms.close() end + println_ts("exited") log.info("exited") end