Skip to content

Commit

Permalink
backport to fix potential deadlock due to udp socket stolen issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sequoiar committed May 27, 2016
1 parent cc1e1b8 commit 53cb0d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deps/uv/src/UDT4/src/api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1509,10 +1509,10 @@ void CUDTUnited::removeSocket(const UDTSOCKET u)
m->second.m_iRefCount --;
if (0 == m->second.m_iRefCount)
{
m->second.m_pChannel->close();
delete m->second.m_pSndQueue;
delete m->second.m_pRcvQueue;
delete m->second.m_pTimer;
m->second.m_pChannel->close();
delete m->second.m_pChannel;
m_mMultiplexer.erase(m);
}
Expand Down

0 comments on commit 53cb0d8

Please sign in to comment.