diff options
| author | Nils Maier <maierman@web.de> | 2014-12-13 08:13:38 +0100 |
|---|---|---|
| committer | Nils Maier <maierman@web.de> | 2014-12-13 08:14:07 +0100 |
| commit | b0cdbfe9e72f0c0cb69ba7bb9fa1a18a21be490e (patch) | |
| tree | 452bfca3e9e986256992498582c906159c8e43fe /src | |
| parent | 811c0f758da0d161b278fc6b0da333459dd220b4 (diff) | |
Fix ASYNC_DNS code in LibuvEventPoll
Diffstat (limited to 'src')
| -rw-r--r-- | src/LibuvEventPoll.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/LibuvEventPoll.cc b/src/LibuvEventPoll.cc index c5b3f42d..f201615e 100644 --- a/src/LibuvEventPoll.cc +++ b/src/LibuvEventPoll.cc @@ -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 |
