mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-18 19:10:11 +00:00
Fix unlocked access to vNodes.size()
This commit is contained in:
parent
303352286f
commit
dfed983f19
@ -1103,8 +1103,13 @@ void CConnman::ThreadSocketHandler()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(vNodes.size() != nPrevNodeCount) {
|
size_t vNodesSize;
|
||||||
nPrevNodeCount = vNodes.size();
|
{
|
||||||
|
LOCK(cs_vNodes);
|
||||||
|
vNodesSize = vNodes.size();
|
||||||
|
}
|
||||||
|
if(vNodesSize != nPrevNodeCount) {
|
||||||
|
nPrevNodeCount = vNodesSize;
|
||||||
if(clientInterface)
|
if(clientInterface)
|
||||||
clientInterface->NotifyNumConnectionsChanged(nPrevNodeCount);
|
clientInterface->NotifyNumConnectionsChanged(nPrevNodeCount);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user