mirror of https://github.com/smol-rs/smol
Clear the IoEvent after any react() call
This commit is contained in:
parent
b2b282fbce
commit
6ada2d13cf
|
@ -153,6 +153,7 @@ impl Inner {
|
|||
reactor_lock
|
||||
.react(Some(Duration::from_secs(0)))
|
||||
.expect("failure while polling I/O");
|
||||
EVENT.clear();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
@ -165,6 +166,7 @@ impl Inner {
|
|||
reactor_lock
|
||||
.react(Some(Duration::from_secs(0)))
|
||||
.expect("failure while polling I/O");
|
||||
EVENT.clear();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue