From 480195671fa63c88f0b6a11ccdc4e5d487777ee1 Mon Sep 17 00:00:00 2001 From: Nickiel12 Date: Fri, 6 Jan 2023 16:43:29 -0800 Subject: [PATCH] fix!: fixed closed connection error --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.rs b/src/main.rs index 8ee30d1..1b58110 100644 --- a/src/main.rs +++ b/src/main.rs @@ -142,6 +142,8 @@ fn main() { sockets.remove(i); } else if error.to_string().ends_with("(os error 11)") { continue; + } else if error.to_string().ends_with("Trying to work with closed connection") { + sockets.remove(i); } else { println!("There was an IO error: {}", error.to_string()); }