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()); }