Skip to content

Commit e528210

Browse files
Exhaust egress state on poll
1 parent e2b75e3 commit e528210

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
@@ -460,9 +460,11 @@ impl Interface {
460460
}
461461

462462
// Process egress.
463-
match self.poll_egress(timestamp, device, sockets) {
464-
PollResult::None => {}
465-
PollResult::SocketStateChanged => res = PollResult::SocketStateChanged,
463+
loop {
464+
match self.poll_egress(timestamp, device, sockets) {
465+
PollResult::None => break,
466+
PollResult::SocketStateChanged => res = PollResult::SocketStateChanged,
467+
}
466468
}
467469

468470
res

0 commit comments

Comments
 (0)