From c6d74fbdc2244d73c57ca3ec65354418bb04e0c5 Mon Sep 17 00:00:00 2001 From: skywind3000 Date: Wed, 2 Sep 2015 17:01:41 +0800 Subject: [PATCH] commit kcp --- ikcp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ikcp.c b/ikcp.c index 4d933f1..149d873 100644 --- a/ikcp.c +++ b/ikcp.c @@ -901,7 +901,7 @@ void ikcp_flush(ikcpcb *kcp) if (kcp->probe & IKCP_ASK_SEND) { seg.cmd = IKCP_CMD_WASK; size = (int)(ptr - buffer); - if (size + IKCP_OVERHEAD >= (int)kcp->mtu) { + if (size + IKCP_OVERHEAD > (int)kcp->mtu) { ikcp_output(kcp, buffer, size); ptr = buffer; } @@ -912,7 +912,7 @@ void ikcp_flush(ikcpcb *kcp) if (kcp->probe & IKCP_ASK_TELL) { seg.cmd = IKCP_CMD_WINS; size = (int)(ptr - buffer); - if (size + IKCP_OVERHEAD >= (int)kcp->mtu) { + if (size + IKCP_OVERHEAD > (int)kcp->mtu) { ikcp_output(kcp, buffer, size); ptr = buffer; }