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