From 4f78f9c42ca5dcc3741e2f63e75ab93c4fd55c39 Mon Sep 17 00:00:00 2001 From: Himbeer Date: Mon, 24 Mar 2025 13:47:37 +0100 Subject: Ignore TcpStream::shutdown errors Forcibly closing connections when they go out of scope is sufficient. Shutdown failures should not result in crashes. --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 1a0a443..9f69ab3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -238,7 +238,7 @@ fn check_connectivity( break; } - conn4.shutdown(Shutdown::Both)?; + conn4.shutdown(Shutdown::Both).ok(); } let conn6 = @@ -276,7 +276,7 @@ fn check_connectivity( break; } - conn6.shutdown(Shutdown::Both)?; + conn6.shutdown(Shutdown::Both).ok(); } Ok(()) -- cgit v1.2.3