do not unwrap stream write, TcpStream::shutdown results (#492)

This commit is contained in:
Mark Thom
2020-05-12 18:51:34 -06:00
parent 23f804eda3
commit 3c6149fd27
2 changed files with 3 additions and 3 deletions

View File

@@ -107,7 +107,7 @@ impl Drop for StreamInstance {
fn drop(&mut self) {
match self {
StreamInstance::TcpStream(_, ref mut tcp_stream) => {
tcp_stream.shutdown(Shutdown::Both).unwrap();
discard_result!(tcp_stream.shutdown(Shutdown::Both));
}
_ => {
}