#636 close connections on nic switch

This commit is contained in:
Mikayla Fischler
2025-11-08 19:14:34 -05:00
parent 76fc5751c9
commit 3987d337c4
4 changed files with 17 additions and 7 deletions

View File

@@ -359,7 +359,11 @@ function rtu.comms(version, nic, conn_watchdog)
-- switch the current active NIC
---@param act_nic nic
function public.switch_nic(act_nic) nic = act_nic end
---@param rtu_state rtu_state
function public.switch_nic(act_nic, rtu_state)
public.close(rtu_state)
nic = act_nic
end
-- unlink from the server
---@param rtu_state rtu_state