mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-09 00:00:08 +02:00
Fix: struct shoutdown ignore Async::NotReady (#114)
This commit is contained in:
@@ -38,7 +38,7 @@ impl<A> Future for Shutdown<A>
|
|||||||
type Error = io::Error;
|
type Error = io::Error;
|
||||||
|
|
||||||
fn poll(&mut self) -> Poll<A, 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()))
|
Ok(Async::Ready(self.a.take().unwrap()))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user