mirror of
https://github.com/async-rs/async-std.git
synced 2025-02-06 04:35:32 +00:00
parent
63b6a2b961
commit
c90732a805
1 changed files with 1 additions and 0 deletions
|
@ -356,6 +356,7 @@ impl Write for &TcpStream {
|
|||
}
|
||||
|
||||
fn poll_close(self: Pin<&mut Self>, _: &mut Context<'_>) -> Poll<io::Result<()>> {
|
||||
self.shutdown(std::net::Shutdown::Write)?;
|
||||
Poll::Ready(Ok(()))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue