Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
r58Playz committed Mar 29, 2024
1 parent 3acc605 commit e99d719
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/stream/tcb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
});
}
}
Expand Down

0 comments on commit e99d719

Please sign in to comment.