Skip to content

Commit 356af05

Browse files
author
Stjepan Glavina
committed
Clear events list before polling
1 parent 3387d0b commit 356af05

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/reactor.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,8 @@ impl ReactorLock<'_> {
311311
.fetch_add(1, Ordering::SeqCst)
312312
.wrapping_add(1);
313313

314+
self.events.clear();
315+
314316
// Block on I/O events.
315317
let res = match self.reactor.poller.wait(&mut self.events, timeout) {
316318
// No I/O events occurred.

0 commit comments

Comments
 (0)