diff --git a/coordinator/threads.lua b/coordinator/threads.lua index 1bd8fce..e7c2d8c 100644 --- a/coordinator/threads.lua +++ b/coordinator/threads.lua @@ -272,6 +272,13 @@ function threads.thread__render(smem) if msg.qtype == mqueue.TYPE.COMMAND then -- received a command if msg.message == MQ__RENDER_CMD.START_MAIN_UI then + -- stop the UI if it was already started + -- this may occur on a quick supervisor disconnect -> connect + if renderer.ui_ready() then + log_render("closing main UI before executing new request to start") + renderer.close_ui() + end + -- start up the main UI log_render("starting main UI...")