diff --git a/src/stream/tcb.rs b/src/stream/tcb.rs index e771123..4e2e281 100644 --- a/src/stream/tcb.rs +++ b/src/stream/tcb.rs @@ -190,7 +190,8 @@ impl Tcb { } self.inflight_packets.retain(|p| { let last_byte = p.seq.wrapping_add(p.payload.len() as u32); - last_byte.saturating_sub(self.last_ack) > 0 && self.seq.saturating_sub(last_byte) > 0 + last_byte.saturating_sub(self.last_ack) > 0 + && self.seq.saturating_sub(last_byte) > 0 }); } }