Wakeup select/poll when new nodes are added

This commit is contained in:
Alexander Block 2020-04-08 23:17:19 +02:00
parent 2610e718cd
commit 97ee3015e1

View File

@ -1224,6 +1224,7 @@ void CConnman::AcceptConnection(const ListenSocket& hListenSocket) {
{
LOCK(cs_vNodes);
vNodes.push_back(pnode);
WakeSelect();
}
}
@ -2473,6 +2474,7 @@ void CConnman::OpenNetworkConnection(const CAddress& addrConnect, bool fCountFai
{
LOCK(cs_vNodes);
vNodes.push_back(pnode);
WakeSelect();
}
}