Skip to content

Commit 809d6cf

Browse files
Exhaust egress state on poll
1 parent 17012eb commit 809d6cf

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/iface/interface/mod.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -465,9 +465,11 @@ impl Interface {
465465
}
466466

467467
// Process egress.
468-
match self.poll_egress(timestamp, device, sockets) {
469-
PollResult::None => {}
470-
PollResult::SocketStateChanged => res = PollResult::SocketStateChanged,
468+
loop {
469+
match self.poll_egress(timestamp, device, sockets) {
470+
PollResult::None => break,
471+
PollResult::SocketStateChanged => res = PollResult::SocketStateChanged,
472+
}
471473
}
472474

473475
res

0 commit comments

Comments
 (0)