Skip to content

Commit

Permalink
Revert "Revert "fix a boundary""
Browse files Browse the repository at this point in the history
This reverts commit 85ba2e4.
  • Loading branch information
xtaci committed Nov 11, 2016
1 parent 3445171 commit ffaad6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ func (kcp *KCP) flush() {
ptr = buffer
}
ack := heap.Pop(&kcp.acklist).(ackItem)
if ack.sn > kcp.rcv_nxt || kcp.acklist.Len() == 0 {
if ack.sn >= kcp.rcv_nxt || kcp.acklist.Len() == 0 {
seg.sn, seg.ts = ack.sn, ack.ts
ptr = seg.encode(ptr)
}
Expand Down

0 comments on commit ffaad6e

Please sign in to comment.