fix?: does dropping on error count as fixing the issue

This commit is contained in:
Nickiel12 2023-01-06 16:46:37 -08:00
parent 480195671f
commit 3411c0e4a0

View file

@ -151,7 +151,10 @@ fn main() {
//panic!(); //panic!();
//continue; //continue;
} }
_ => println!("A socket errored: {}", error.to_string()), _ => {
println!("A socket errored: {}", error.to_string());
sockets.remove(i);
}
}, },
} }
} }