Fix: struct shoutdown ignore Async::NotReady (#114)

This commit is contained in:
cssivision 2018-02-07 05:30:05 +08:00 committed by Carl Lerche
parent f0ea9d6f4c
commit 73b763f69f

View File

@ -38,7 +38,7 @@ impl<A> Future for Shutdown<A>
type Error = io::Error;
fn poll(&mut self) -> Poll<A, io::Error> {
try_nb!(self.a.as_mut().unwrap().shutdown());
try_ready!(self.a.as_mut().unwrap().shutdown());
Ok(Async::Ready(self.a.take().unwrap()))
}
}