From 0373ae1d4a45a90becaa73d4b3d5c110e49f5757 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Mi=C4=85sko?= Date: Wed, 18 Sep 2019 00:00:00 +0000 Subject: [PATCH] Flush sink when source stream is pending in SendAll --- futures-util/src/sink/send_all.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/futures-util/src/sink/send_all.rs b/futures-util/src/sink/send_all.rs index bcc6a8c921..65e5bf5236 100644 --- a/futures-util/src/sink/send_all.rs +++ b/futures-util/src/sink/send_all.rs @@ -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 } }