fix: on_pkt_sent lacks xmit information

This commit is contained in:
skywind3000
2026-05-15 21:40:30 +08:00
parent 8aded6f405
commit b3607a6d7d
2 changed files with 3 additions and 2 deletions

3
ikcp.c
View File

@@ -1086,7 +1086,8 @@ void ikcp_flush(ikcpcb *kcp)
newseg->xmit = 0;
if (kcp->ccops && kcp->ccops->on_pkt_sent) {
kcp->ccops->on_pkt_sent(kcp, newseg->sn, current, newseg->len, kcp->nsnd_buf - 1);
kcp->ccops->on_pkt_sent(kcp, newseg->sn, current,
newseg->len, kcp->nsnd_buf - 1, 0);
}
}