From: Victor Kirhenshtein Date: Thu, 2 Nov 2017 18:14:14 +0000 (+0200) Subject: fixed incorrect mutex unlock in Node::getAgentConnection X-Git-Url: http://git.netxms.org/public/netxms.git/commitdiff_plain/a71300bcdded9530f5685d51677cf4c7b6cd037f fixed incorrect mutex unlock in Node::getAgentConnection --- diff --git a/src/server/core/node.cpp b/src/server/core/node.cpp index d51301b9f..350c67014 100644 --- a/src/server/core/node.cpp +++ b/src/server/core/node.cpp @@ -5407,11 +5407,11 @@ AgentConnectionEx *Node::getAgentConnection() conn = m_agentConnection; conn->incRefCount(); } + MutexUnlock(m_hAgentAccessMutex); break; } ThreadSleepMs(50); } - MutexUnlock(m_hAgentAccessMutex); if (!success) {