more cleanup

This commit is contained in:
Mikayla Fischler 2024-06-29 14:51:15 -04:00
parent f2937b47e9
commit c05a45c29a

View File

@ -466,8 +466,8 @@ function pocket.comms(version, nic, sv_watchdog, api_watchdog, nav)
sv_watchdog.cancel() sv_watchdog.cancel()
nav.unload_sv() nav.unload_sv()
self.sv.linked = false self.sv.linked = false
self.sv.addr = comms.BROADCAST
self.sv.r_seq_num = nil self.sv.r_seq_num = nil
self.sv.addr = comms.BROADCAST
_send_sv(MGMT_TYPE.CLOSE, {}) _send_sv(MGMT_TYPE.CLOSE, {})
end end
@ -476,8 +476,8 @@ function pocket.comms(version, nic, sv_watchdog, api_watchdog, nav)
api_watchdog.cancel() api_watchdog.cancel()
nav.unload_api() nav.unload_api()
self.api.linked = false self.api.linked = false
self.api.addr = comms.BROADCAST
self.api.r_seq_num = nil self.api.r_seq_num = nil
self.api.addr = comms.BROADCAST
_send_crd(MGMT_TYPE.CLOSE, {}) _send_crd(MGMT_TYPE.CLOSE, {})
end end
@ -658,8 +658,8 @@ function pocket.comms(version, nic, sv_watchdog, api_watchdog, nav)
api_watchdog.cancel() api_watchdog.cancel()
nav.unload_api() nav.unload_api()
self.api.linked = false self.api.linked = false
self.api.addr = comms.BROADCAST
self.api.r_seq_num = nil self.api.r_seq_num = nil
self.api.addr = comms.BROADCAST
log.info("coordinator server connection closed by remote host") log.info("coordinator server connection closed by remote host")
else _fail_type(packet) end else _fail_type(packet) end
elseif packet.type == MGMT_TYPE.ESTABLISH then elseif packet.type == MGMT_TYPE.ESTABLISH then
@ -764,8 +764,8 @@ function pocket.comms(version, nic, sv_watchdog, api_watchdog, nav)
sv_watchdog.cancel() sv_watchdog.cancel()
nav.unload_sv() nav.unload_sv()
self.sv.linked = false self.sv.linked = false
self.sv.addr = comms.BROADCAST
self.sv.r_seq_num = nil self.sv.r_seq_num = nil
self.sv.addr = comms.BROADCAST
log.info("supervisor server connection closed by remote host") log.info("supervisor server connection closed by remote host")
elseif packet.type == MGMT_TYPE.DIAG_TONE_GET then elseif packet.type == MGMT_TYPE.DIAG_TONE_GET then
if _check_length(packet, 8) then if _check_length(packet, 8) then