This commit is contained in:
irving ou 2024-02-22 15:08:08 -05:00
parent 7fa4cfc0f5
commit 2c84391bd5
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ fn main() -> io::Result<()> {
};
println!("event: {:?}", event);
if event.is_connect_failed().unwrap_or_default() {
if event.is_err().unwrap_or(false){
println!("connect failed");
}