mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-09-28 12:10:37 +00:00
Fix: struct shoutdown ignore Async::NotReady (#114)
This commit is contained in:
parent
f0ea9d6f4c
commit
73b763f69f
@ -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()))
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user