Skip to content

Commit

Permalink
[core] Fixed getting SRTO_TLPKTDROP:
Browse files Browse the repository at this point in the history
return config value until connected.
  • Loading branch information
maxsharabayko committed Apr 15, 2021
1 parent b9d568e commit 9442870
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion srtcore/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,11 @@ void CUDT::getOpt(SRT_SOCKOPT optName, void *optval, int &optlen)
break;

case SRTO_TLPKTDROP:
*(bool *)optval = m_bTLPktDrop;
if (m_bConnected)
*(bool *)optval = m_bTLPktDrop;
else
*(bool *)optval = m_config.bTLPktDrop;

optlen = sizeof(bool);
break;

Expand Down

0 comments on commit 9442870

Please sign in to comment.