Fix issue with BcPayloadStream not waking for next poll
This commit is contained in:
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),
|
||||
|
||||
Reference in new issue
Block a user