#327 close connections on timeout

This commit is contained in:
Mikayla Fischler
2023-08-25 21:42:35 -04:00
parent 8b0a5d529e
commit b7d4468cea
4 changed files with 6 additions and 6 deletions

View File

@@ -93,8 +93,8 @@ function threads.thread__main(smem)
smem.q.mq_comms.push_packet(packet)
end
elseif event == "timer" and conn_watchdog.is_timer(param1) then
-- haven't heard from server recently? unlink
rtu_comms.unlink(rtu_state)
-- haven't heard from server recently? close connection
rtu_comms.close(rtu_state)
elseif event == "timer" then
-- notify timer callback dispatcher if no other timer case claimed this event
tcd.handle(param1)