We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 876423e commit 846a546Copy full SHA for 846a546
1 file changed
compio-driver/src/poll/mod.rs
@@ -367,6 +367,7 @@ impl Driver {
367
if self.poll_blocking() {
368
return Ok(());
369
}
370
+ self.events.clear();
371
self.poll.wait(&mut self.events, timeout)?;
372
if self.events.is_empty() && timeout.is_some() {
373
return Err(io::Error::from_raw_os_error(libc::ETIMEDOUT));
0 commit comments