mirror of
https://github.com/smoltcp-rs/smoltcp.git
synced 2025-09-30 22:31:25 +00:00
Exhaustion of transmit buffers should not be a reportable error.
This commit is contained in:
parent
fac42e94db
commit
017210ea28
@ -184,6 +184,7 @@ impl<'a, 'b, 'c, DeviceT: Device + 'a> Interface<'a, 'b, 'c, DeviceT> {
|
||||
&mut Socket::__Nonexhaustive => unreachable!()
|
||||
};
|
||||
match (device_result, socket_result) {
|
||||
(Err(Error::Exhausted), Ok(())) => break, // nowhere to transmit
|
||||
(Ok(()), Err(Error::Exhausted)) => (), // nothing to transmit
|
||||
(Err(err), _) | (_, Err(err)) => {
|
||||
net_debug!("cannot dispatch egress packet: {}", err);
|
||||
|
Loading…
x
Reference in New Issue
Block a user