Skip to content

Commit 39bec2a

Browse files
committed
fix to Write either
1 parent 3eabe4c commit 39bec2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sess.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ func (s *UDPSession) Write(b []byte) (n int, err error) {
207207
}
208208
}
209209

210-
if s.kcp.WaitSnd() < int(s.kcp.snd_wnd) {
210+
if s.kcp.WaitSnd() < int(s.kcp.Cwnd()) {
211211
n = len(b)
212212
max := s.kcp.mss << 8
213213
for {

0 commit comments

Comments
 (0)