Skip to content

Commit

Permalink
async client: save latest Waker (#1198)
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasad1 committed Sep 8, 2023
1 parent 9b0d4f3 commit c3d367d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/src/client/async_client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -931,8 +931,7 @@ impl<Fut: Future> Stream for MaybePendingFutures<Fut> {

fn poll_next(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<Self::Item>> {
if self.futs.is_empty() {
self.waker.get_or_insert_with(|| cx.waker().clone());

self.waker = Some(cx.waker().clone());
return Poll::Pending;
}

Expand Down

0 comments on commit c3d367d

Please sign in to comment.