summaryrefslogtreecommitdiffstats
path: root/tokio-tcp
diff options
context:
space:
mode:
authorKam Y. Tse <kevin.xjy@gmail.com>2018-04-03 04:11:06 +0800
committerCarl Lerche <me@carllerche.com>2018-04-02 13:11:06 -0700
commit3ba5595233d383f69cb6ea8b0d87fd6946402a60 (patch)
treea1358aef59bd370b36eededf28ef900b3e09449d /tokio-tcp
parent7232ba6d55a7b80d743b01efacd92ebff8897b21 (diff)
Fix typo (#275)
Diffstat (limited to 'tokio-tcp')
-rw-r--r--tokio-tcp/src/stream.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tokio-tcp/src/stream.rs b/tokio-tcp/src/stream.rs
index a8e67c0a..4f39feab 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),