Clear the IoEvent after any react() call

This commit is contained in:
Stjepan Glavina 2020-06-18 16:39:21 +02:00
parent b2b282fbce
commit 6ada2d13cf
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}