Skip to content

Commit

Permalink
[core] Apply lock on RCV buffer read-ready check.
Browse files Browse the repository at this point in the history
Co-authored-by: Sektor van Skijlen <ethouris@gmail.com>
  • Loading branch information
maxsharabayko and ethouris committed Aug 13, 2024
1 parent 1669542 commit cf4b080
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 @@ -7124,7 +7124,7 @@ int srt::CUDT::receiveMessage(char* data, int len, SRT_MSGCTRL& w_mctrl, int by_

do
{
if (stillConnected() && !timeout && !m_pRcvBuffer->isRcvDataReady(steady_clock::now()))
if (stillConnected() && !timeout && !isRcvBufferReady())
{
/* Kick TsbPd thread to schedule next wakeup (if running) */
if (m_bTsbPd)
Expand Down

0 comments on commit cf4b080

Please sign in to comment.