udp: improve error handling in read_requests

This commit is contained in:
Joakim Frostegård 2022-04-14 17:32:31 +02:00
parent 6cbfa46805
commit f532ec1875

View file

@ -267,12 +267,11 @@ fn read_requests(
src,
);
}
Err(err) if err.kind() == ErrorKind::WouldBlock => {
break;
}
Err(err) => {
if err.kind() == ErrorKind::WouldBlock {
break;
}
::log::info!("recv_from error: {}", err);
::log::warn!("recv_from error: {:#}", err);
}
}
}