Skip to content

Commit

Permalink
[core] Improved the condition for smoothed_rtt recalculation, bidirec…
Browse files Browse the repository at this point in the history
…tional transmission
  • Loading branch information
mbakholdina authored and maxsharabayko committed Feb 1, 2022
1 parent 08e6482 commit 409d363
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion srtcore/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8382,7 +8382,7 @@ void srt::CUDT::processCtrlAck(const CPacket &ctrlpkt, const steady_clock::time_
// TODO: The case of bidirectional transmission requires further
// improvements and testing. Double smoothing is applied here to be
// consistent with the previous behavior.
if (rtt != INITIAL_RTT && rttvar != INITIAL_RTTVAR)
if (rtt != INITIAL_RTT || rttvar != INITIAL_RTTVAR)
{
int iSRTT = m_iSRTT.load(), iRTTVar = m_iRTTVar.load();
iRTTVar = avg_iir<4>(iRTTVar, abs(rtt - iSRTT));
Expand Down

0 comments on commit 409d363

Please sign in to comment.