diff --git a/src/main.rs b/src/main.rs index 1b58110..bd4aa83 100644 --- a/src/main.rs +++ b/src/main.rs @@ -151,7 +151,10 @@ fn main() { //panic!(); //continue; } - _ => println!("A socket errored: {}", error.to_string()), + _ => { + println!("A socket errored: {}", error.to_string()); + sockets.remove(i); + } }, } }