Merge pull request #3136 from trepidacious/read_ready_smoltcp_fix
Add check for closed connection to `read_ready()`
This commit is contained in:
commit
e0c0a618bd
1 changed files with 1 additions and 1 deletions
|
@ -587,7 +587,7 @@ mod embedded_io_impls {
|
|||
|
||||
impl<'d> embedded_io_async::ReadReady for TcpSocket<'d> {
|
||||
fn read_ready(&mut self) -> Result<bool, Self::Error> {
|
||||
Ok(self.io.with(|s, _| s.can_recv()))
|
||||
Ok(self.io.with(|s, _| s.can_recv() || !s.may_recv()))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue