get rid of some more panics

This commit is contained in:
Robin Müller 2023-07-08 13:26:49 +02:00
parent 4613aaaf2c
commit c485fbd21d
Signed by: muellerr
GPG Key ID: A649FB78196E3849

View File

@ -217,10 +217,9 @@ fn core_tm_handling(udp_tmtc_server: &mut UdpTmtcServer, recv_addr: &SocketAddr)
} else {
info!("Sending PUS TM");
}
udp_tmtc_server
.udp_tc_server
.socket
.send_to(buf, recv_addr)
.expect("sending TM failed");
let result = udp_tmtc_server.udp_tc_server.socket.send_to(buf, recv_addr);
if let Err(e) = result {
warn!("Sending TM with UDP socket failed: {e}")
}
}
}