浏览代码

Merge branch 'master' into warn-ssl3

Tatsuhiro Tsujikawa 11 年之前
父节点
当前提交
701e5df790
共有 1 个文件被更改,包括 4 次插入3 次删除
  1. 4 3
      src/LibuvEventPoll.cc

+ 4 - 3
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