diff options
author | Kam Y. Tse <kevin.xjy@gmail.com> | 2018-04-03 04:11:06 +0800 |
---|---|---|
committer | Carl Lerche <me@carllerche.com> | 2018-04-02 13:11:06 -0700 |
commit | 3ba5595233d383f69cb6ea8b0d87fd6946402a60 (patch) | |
tree | a1358aef59bd370b36eededf28ef900b3e09449d /tokio-tcp | |
parent | 7232ba6d55a7b80d743b01efacd92ebff8897b21 (diff) |
Fix typo (#275)
Diffstat (limited to 'tokio-tcp')
-rw-r--r-- | tokio-tcp/src/stream.rs | 2 |
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), |