diff --git a/hptp-send/src/main.rs b/hptp-send/src/main.rs index 0f2f80d..28f9170 100644 --- a/hptp-send/src/main.rs +++ b/hptp-send/src/main.rs @@ -161,13 +161,13 @@ where _ = timer => Evt::Timer, r = peer.recv() => match r { Ok(m) => Evt::Recv(m), - Err(peer::RecvError::Io { source }) => { - return Err(source.into()); - } Err(peer::RecvError::InvalidMessage { .. }) => { log.recv_corrupt().await; continue; } + Err(peer::RecvError::Io { source }) => { + return Err(source.into()); + } } );