Skip to content

Commit

Permalink
Revert to poll_close() with #1441 merged
Browse files Browse the repository at this point in the history
  • Loading branch information
ebkalderon committed Feb 15, 2019
1 parent adedad1 commit 8a2d6f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion futures-util/src/stream/forward.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(()))
}
Expand Down

0 comments on commit 8a2d6f7

Please sign in to comment.