Skip to content

Commit

Permalink
[core] Removed unnecessary lock that could cause a deadlock
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikołaj Małecki authored and maxsharabayko committed Mar 23, 2021
1 parent 22d5736 commit 93de9c8
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion srtcore/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1668,7 +1668,6 @@ bool CUDT::createSrtHandshake(
if (have_group)
{
// NOTE: See information about mutex ordering in api.h
ScopedLock grd (m_parent->m_ControlLock); // Required to make sure
ScopedLock gdrg (s_UDTUnited.m_GlobControlLock);
if (!m_parent->m_GroupOf)
{
Expand Down

0 comments on commit 93de9c8

Please sign in to comment.