#460 cleanup and moved date and time update to be behind UI ready rather than linked

This commit is contained in:
Mikayla Fischler 2024-04-07 20:24:27 -04:00
parent 1504247b33
commit eab1ffbe03

View File

@ -141,14 +141,12 @@ function threads.thread__main(smem)
end
end
-- iterate sessions
-- iterate sessions and free any closed sessions
apisessions.iterate_all()
-- free any closed sessions
apisessions.free_all_closed()
-- update date and time string for main display
if coord_comms.is_linked() then
if renderer.ui_ready() then
-- update clock used on main and flow monitors
iocontrol.get_db().facility.ps.publish("date_time", os.date(smem.date_format))
end