Skip to content

Commit

Permalink
Flush sink when source stream is pending in SendAll
Browse files Browse the repository at this point in the history
  • Loading branch information
tmiasko authored and cramertj committed Sep 24, 2019
1 parent ecb062f commit 4c42654
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion futures-util/src/sink/send_all.rs
Expand Up @@ -87,7 +87,7 @@ where
return Poll::Ready(Ok(()))
}
Poll::Pending => {
ready!(Pin::new(&mut this.sink).poll_ready(cx))?;
ready!(Pin::new(&mut this.sink).poll_flush(cx))?;
return Poll::Pending
}
}
Expand Down

0 comments on commit 4c42654

Please sign in to comment.