Skip to content

Commit

Permalink
fix missing increment of the reference count on every call to start()
Browse files Browse the repository at this point in the history
  • Loading branch information
mbechard committed Jan 3, 2025
1 parent 8a89a3a commit fa468c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions srtcore/api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,10 +236,10 @@ string srt::CUDTUnited::CONID(SRTSOCKET sock)
int srt::CUDTUnited::startup()
{
ScopedLock gcinit(m_InitLock);
if (m_bGCStatus)
if (m_iInstanceCount++ > 0)
return 1;

if (m_iInstanceCount++ > 0)
if (m_bGCStatus)
return 1;

// Global initialization code
Expand Down

0 comments on commit fa468c2

Please sign in to comment.