diff --git a/srtcore/core.cpp b/srtcore/core.cpp index 811fd6c94..873b6ad6f 100644 --- a/srtcore/core.cpp +++ b/srtcore/core.cpp @@ -6493,6 +6493,8 @@ int srt::CUDT::sndDropTooLate() if (dpkts <= 0) return 0; + m_iFlowWindowSize = m_iFlowWindowSize + dpkts; + // If some packets were dropped update stats, socket state, loss list and the parent group if any. enterCS(m_StatsLock); m_stats.sndr.dropped.count(stats::BytesPackets((uint64_t) dbytes, (uint32_t) dpkts));