mirror of https://github.com/smol-rs/polling
This commit is contained in:
parent
7fa4cfc0f5
commit
2c84391bd5
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue