client_bind: tighten match

this branch is specific to Async::NotReady
This commit is contained in:
Astro 2017-06-19 02:33:01 +02:00
parent 2e0dff5153
commit 8b7a49d03a

View file

@ -112,7 +112,7 @@ impl<S: AsyncRead + AsyncWrite> Future for ClientBind<S> {
replace(self, ClientBind::WaitRecv(stream));
self.poll()
},
Ok(_) => {
Ok(Async::NotReady) => {
replace(self, ClientBind::WaitRecv(stream));
Ok(Async::NotReady)
},