From 53cb0d87101237eba19dc6223cdf5390a58cff37 Mon Sep 17 00:00:00 2001 From: tomzhou Date: Fri, 27 May 2016 18:20:48 +0800 Subject: [PATCH] backport to fix potential deadlock due to udp socket stolen issue https://github.com/barchart/barchart-udt/pull/84 --- deps/uv/src/UDT4/src/api.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/uv/src/UDT4/src/api.cpp b/deps/uv/src/UDT4/src/api.cpp index c5626f1eb93..18dcad2c551 100755 --- a/deps/uv/src/UDT4/src/api.cpp +++ b/deps/uv/src/UDT4/src/api.cpp @@ -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); }