diff options
author | Himbeer <himbeer@disroot.org> | 2025-03-24 13:47:37 +0100 |
---|---|---|
committer | Himbeer <himbeer@disroot.org> | 2025-03-24 13:47:37 +0100 |
commit | 4f78f9c42ca5dcc3741e2f63e75ab93c4fd55c39 (patch) | |
tree | 3d076a454115bff6ed4fbd71b6fb1e3a9353cfe7 | |
parent | 1b75b8936b157f15632307c315d5fd1b585e1d21 (diff) |
Ignore TcpStream::shutdown errors
Forcibly closing connections when they go out of scope is sufficient.
Shutdown failures should not result in crashes.
-rw-r--r-- | src/main.rs | 4 |
1 files 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(()) |