diff --git a/futures-util/src/stream/forward.rs b/futures-util/src/stream/forward.rs index f53b345d97..aaaf8d61b9 100644 --- a/futures-util/src/stream/forward.rs +++ b/futures-util/src/stream/forward.rs @@ -84,7 +84,7 @@ where Poll::Ready(Some(Err(e))) => return Poll::Ready(Err(e)), Poll::Ready(None) => { try_ready!(self.as_mut().sink().as_pin_mut().expect(INVALID_POLL) - .poll_flush(lw)); + .poll_close(lw)); self.as_mut().sink().set(None); return Poll::Ready(Ok(())) }