fix!: fixed closed connection error
This commit is contained in:
parent
b82ebe911c
commit
480195671f
1 changed files with 2 additions and 0 deletions
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue