fix!: fixed closed connection error

This commit is contained in:
Nickiel12 2023-01-06 16:43:29 -08:00
parent b82ebe911c
commit 480195671f

View file

@ -142,6 +142,8 @@ fn main() {
sockets.remove(i); sockets.remove(i);
} else if error.to_string().ends_with("(os error 11)") { } else if error.to_string().ends_with("(os error 11)") {
continue; continue;
} else if error.to_string().ends_with("Trying to work with closed connection") {
sockets.remove(i);
} else { } else {
println!("There was an IO error: {}", error.to_string()); println!("There was an IO error: {}", error.to_string());
} }