#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

@@ -830,7 +830,10 @@ function plc.comms(version, nic, reactor, rps, conn_watchdog)
-- switch the current active NIC
---@param act_nic nic
function public.switch_nic(act_nic) nic = act_nic end
function public.switch_nic(act_nic)
public.close()
nic = act_nic
end
-- reconnect a newly connected reactor
---@param new_reactor table