Skip to content

Commit

Permalink
fix the bug in issue #106
Browse files Browse the repository at this point in the history
  • Loading branch information
xtaci committed Nov 14, 2018
1 parent 263526e commit 02d11d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kcp.go
Expand Up @@ -798,7 +798,7 @@ func (kcp *KCP) flush(ackOnly bool) uint32 {
}

// get the nearest rto
if rto := _itimediff(segment.rto, current); rto > 0 && rto < minrto {
if rto := _itimediff(segment.resendts, current); rto > 0 && rto < minrto {
minrto = rto
}
}
Expand Down

0 comments on commit 02d11d2

Please sign in to comment.