fix: improve error handling for incoming link requests by logging errors when handling fails

This commit is contained in:
2025-12-29 23:45:36 -06:00
parent 177dc3a099
commit 220912989e

View File

@@ -317,7 +317,9 @@ func (d *Destination) Receive(pkt *packet.Packet, iface common.NetworkInterface)
if pkt.PacketType == packet.PacketTypeLinkReq {
debug.Log(debug.DEBUG_INFO, "Received link request for destination")
d.HandleIncomingLinkRequest(pkt, d.transport, iface)
if err := d.HandleIncomingLinkRequest(pkt, d.transport, iface); err != nil {
debug.Log(debug.DEBUG_ERROR, "Failed to handle incoming link request", "error", err)
}
return
}