Fix issue with BcPayloadStream not waking for next poll

This commit is contained in:
QuantumEntangledAndy authored and Andrew King committed 2023-02-23 21:01:27 +07:00
1 parent bf9cfc7178
commit ad5d09045c
1 file changed
+4 -1
@@ -60,7 +60,10 @@ impl<'a> Stream for BcPayloadStream<'a> {
}),
..
} => Poll::Ready(Some(Ok(data))),
_ => Poll::Pending,
_ => {
cx.waker().wake_by_ref(); // Make it wake in next frame for another attempt at rx.poll_next(cx)
Poll::Pending
}
}
}
Poll::Ready(None) => Poll::Ready(None),