fix lock order in ThreadMnbRequestConnections (#1298)
This commit is contained in:
parent
572c554681
commit
c8466cfb04
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user