From 3ba5595233d383f69cb6ea8b0d87fd6946402a60 Mon Sep 17 00:00:00 2001 From: "Kam Y. Tse" Date: Tue, 3 Apr 2018 04:11:06 +0800 Subject: [PATCH] Fix typo (#275) --- tokio-tcp/src/stream.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tokio-tcp/src/stream.rs b/tokio-tcp/src/stream.rs index a8e67c0ae..4f39feab5 100644 --- a/tokio-tcp/src/stream.rs +++ b/tokio-tcp/src/stream.rs @@ -618,7 +618,7 @@ impl<'a> futures2::io::AsyncWrite for &'a TcpStream { Ok(futures2::Async::Ready(n)) } Err(ref e) if e.kind() == io::ErrorKind::WouldBlock => { - self.io.clear_write_ready()?; + self.io.clear_write_ready2(cx)?; Ok(futures2::Async::Pending) } Err(e) => Err(e),