From 3411c0e4a0fca3ced5d7fec1ce91dc72ed7f2aae Mon Sep 17 00:00:00 2001 From: Nickiel12 Date: Fri, 6 Jan 2023 16:46:37 -0800 Subject: [PATCH] fix?: does dropping on error count as fixing the issue --- src/main.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); + } }, } }