This commit is contained in:
Paul Pacheco 2023-04-04 10:09:24 +02:00 committed by GitHub
commit d788a55a60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
ikcp.c
View File

@ -507,7 +507,7 @@ int ikcp_send(ikcpcb *kcp, const char *buffer, int len)
if (len <= (int)kcp->mss) count = 1;
else count = (len + kcp->mss - 1) / kcp->mss;
if (count >= (int)IKCP_WND_RCV) return -2;
if (count >= (int)kcp->rcv_wnd) return -2;
if (count == 0) count = 1;