fix to Write either

This commit is contained in:
xtaci
2017-02-21 12:56:00 +08:00
parent 3eabe4c0d9
commit 39bec2a73d
+1 -1
View File
@@ -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 {