From c8466cfb042a2c7d5b443f5ad01abf18d275e402 Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Tue, 31 Jan 2017 21:11:21 +0400 Subject: [PATCH] fix lock order in ThreadMnbRequestConnections (#1298) --- src/net.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net.cpp b/src/net.cpp index 020e04828..fa3fec7cc 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -1712,7 +1712,7 @@ void ThreadMnbRequestConnections() CNode* pnode = NULL; { - LOCK(cs_vNodes); + LOCK2(cs_main, cs_vNodes); pnode = ConnectNode(CAddress(p.first), NULL, true); if(!pnode) continue; pnode->AddRef();