Skip to content

Commit

Permalink
bugfix in sending remainning
Browse files Browse the repository at this point in the history
  • Loading branch information
xtaci committed Mar 21, 2019
1 parent 6fed5a9 commit 44234c0
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 @@ -827,7 +827,7 @@ func (kcp *KCP) flush(ackOnly bool) uint32 {

// flash remain segments
size := len(buffer) - len(ptr)
if size > 0 {
if size > kcp.keep {
kcp.output(buffer, size)
}

Expand Down

0 comments on commit 44234c0

Please sign in to comment.