fix lock order in ThreadMnbRequestConnections (#1298)

This commit is contained in:
UdjinM6 2017-01-31 21:11:21 +04:00 committed by GitHub
parent 572c554681
commit c8466cfb04

View File

@ -1712,7 +1712,7 @@ void ThreadMnbRequestConnections()
CNode* pnode = NULL; CNode* pnode = NULL;
{ {
LOCK(cs_vNodes); LOCK2(cs_main, cs_vNodes);
pnode = ConnectNode(CAddress(p.first), NULL, true); pnode = ConnectNode(CAddress(p.first), NULL, true);
if(!pnode) continue; if(!pnode) continue;
pnode->AddRef(); pnode->AddRef();