This commit is contained in:
Martin Brodbeck 2023-10-06 08:41:59 +02:00
parent daaf52cca7
commit a4abba23e2

View file

@ -158,7 +158,7 @@ fn main() -> std::io::Result<()> {
let mut buf = [0; 64]; let mut buf = [0; 64];
// Waiting for incoming pakets. Otherwise, after timeout, send keepalive paket // Waiting for incoming packets. Otherwise, after timeout, send keepalive packet
let result = socket.recv_from(&mut buf); let result = socket.recv_from(&mut buf);
let (number_of_bytes, src_addr) = match result { let (number_of_bytes, src_addr) = match result {
Ok((num, s)) => (num, s), Ok((num, s)) => (num, s),
@ -166,7 +166,7 @@ fn main() -> std::io::Result<()> {
remove_old_clients(&socket, &mut subscribers); remove_old_clients(&socket, &mut subscribers);
for rec in &subscribers { for rec in &subscribers {
debug!("Sending keepalive paket to {}", rec.0); debug!("Sending keepalive packet to {}", rec.0);
socket.send_to(b"", rec.0).unwrap(); socket.send_to(b"", rec.0).unwrap();
} }
continue; continue;