summaryrefslogtreecommitdiff
path: root/src/LibuvEventPoll.cc
diff options
context:
space:
mode:
authorNils Maier <maierman@web.de>2014-12-13 08:13:38 +0100
committerNils Maier <maierman@web.de>2014-12-13 08:14:07 +0100
commitb0cdbfe9e72f0c0cb69ba7bb9fa1a18a21be490e (patch)
tree452bfca3e9e986256992498582c906159c8e43fe /src/LibuvEventPoll.cc
parent811c0f758da0d161b278fc6b0da333459dd220b4 (diff)
Fix ASYNC_DNS code in LibuvEventPoll
Diffstat (limited to 'src/LibuvEventPoll.cc')
-rw-r--r--src/LibuvEventPoll.cc7
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