mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 20:42:59 +01:00
Set wakeupSelectNeeded=true while poll() is running
This commit is contained in:
parent
1524185462
commit
9401366e8e
@ -1448,7 +1448,12 @@ void CConnman::SocketEvents(std::set<SOCKET> &recv_set, std::set<SOCKET> &send_s
|
||||
vpollfds.push_back(std::move(it.second));
|
||||
}
|
||||
|
||||
if (poll(vpollfds.data(), vpollfds.size(), SELECT_TIMEOUT_MILLISECONDS) < 0) return;
|
||||
wakeupSelectNeeded = true;
|
||||
int r = poll(vpollfds.data(), vpollfds.size(), SELECT_TIMEOUT_MILLISECONDS);
|
||||
wakeupSelectNeeded = false;
|
||||
if (r < 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (interruptNet) return;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user