Skip to content

Commit 57a4d9f

Browse files
committed
[core] Fixed time base sync in a group.
1 parent ceb4cca commit 57a4d9f

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

srtcore/core.cpp

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8721,16 +8721,15 @@ void srt::CUDT::processCtrlAckAck(const CPacket& ctrlpkt, const time_point& tsAr
87218721
// srt_recvfile (which doesn't make any sense), you'll have a deadlock.
87228722
if (m_config.bDriftTracer)
87238723
{
8724-
const bool drift_updated SRT_ATR_UNUSED = m_pRcvBuffer->addRcvTsbPdDriftSample(ctrlpkt.getMsgTimeStamp(), tsArrival, rtt);
87258724
#if ENABLE_BONDING
8726-
if (drift_updated && m_parent->m_GroupOf)
8727-
{
8728-
ScopedLock glock(uglobal().m_GlobControlLock);
8729-
if (m_parent->m_GroupOf)
8730-
{
8731-
m_parent->m_GroupOf->synchronizeDrift(this);
8732-
}
8733-
}
8725+
ScopedLock glock(uglobal().m_GlobControlLock);
8726+
const bool drift_updated =
8727+
#endif
8728+
m_pRcvBuffer->addRcvTsbPdDriftSample(ctrlpkt.getMsgTimeStamp(), tsArrival, rtt);
8729+
8730+
#if ENABLE_BONDING
8731+
if (drift_updated)
8732+
m_parent->m_GroupOf->synchronizeDrift(this);
87348733
#endif
87358734
}
87368735

0 commit comments

Comments
 (0)