mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
Wakeup select/poll when new nodes are added
This commit is contained in:
parent
2610e718cd
commit
97ee3015e1
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user