Skip to content

Commit

Permalink
fix to Write either
Browse files Browse the repository at this point in the history
  • Loading branch information
xtaci committed Feb 21, 2017
1 parent 3eabe4c commit 39bec2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sess.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ func (s *UDPSession) Write(b []byte) (n int, err error) {
}
}

if s.kcp.WaitSnd() < int(s.kcp.snd_wnd) {
if s.kcp.WaitSnd() < int(s.kcp.Cwnd()) {
n = len(b)
max := s.kcp.mss << 8
for {
Expand Down

0 comments on commit 39bec2a

Please sign in to comment.