mirror of https://github.com/aria2/aria2
Merge branch 'master' into warn-ssl3
commit
701e5df790
|
@ -159,9 +159,10 @@ void LibuvEventPoll::poll(const struct timeval& tv)
|
||||||
// their API. So we call ares_process_fd for all ares_channel and
|
// their API. So we call ares_process_fd for all ares_channel and
|
||||||
// re-register their sockets.
|
// re-register their sockets.
|
||||||
for (auto& r: nameResolverEntries_) {
|
for (auto& r: nameResolverEntries_) {
|
||||||
r->processTimeout();
|
auto& ent = r.second;
|
||||||
r->removeSocketEvents(this);
|
ent.processTimeout();
|
||||||
r->addSocketEvents(this);
|
ent.removeSocketEvents(this);
|
||||||
|
ent.addSocketEvents(this);
|
||||||
}
|
}
|
||||||
#endif // ENABLE_ASYNC_DNS
|
#endif // ENABLE_ASYNC_DNS
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue