Skip to content

Commit

Permalink
fix(quic/stream): return error on read
Browse files Browse the repository at this point in the history
  • Loading branch information
mxinden committed Jul 7, 2023
1 parent dd619ca commit bde3252
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions transports/quic/src/connection/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,7 @@ impl AsyncRead for Stream {
return Poll::Ready(Ok(0));
}
}
let read_result = futures::ready!(Pin::new(&mut self.recv).poll_read(cx, buf));
if read_result.is_err() {
return Poll::Ready(Ok(0));
}
Poll::Ready(read_result)
Pin::new(&mut self.recv).poll_read(cx, buf)
}
}

Expand Down

0 comments on commit bde3252

Please sign in to comment.