Merge pull request #195 from living180/master

Fix logic error in TcpStream.read_buf()
This commit is contained in:
Alex Crichton
2017-03-27 10:54:18 -05:00
committed by GitHub
+1 -1
View File
@@ -526,7 +526,7 @@ impl<'a> AsyncRead for &'a TcpStream {
}
Err(e) => {
if e.kind() == io::ErrorKind::WouldBlock {
self.io.need_write();
self.io.need_read();
}
Err(e)
}