Chromium Code Reviews| Index: net/base/host_resolver_impl.cc |
| =================================================================== |
| --- net/base/host_resolver_impl.cc (revision 44558) |
| +++ net/base/host_resolver_impl.cc (working copy) |
| @@ -851,6 +851,7 @@ |
| for (JobMap::iterator it = jobs_.begin(); it != jobs_.end(); ++it) |
| it->second->Cancel(); |
| jobs_.clear(); |
| + DiscardIPv6ProbeJob(); |
| } |
| void HostResolverImpl::ClearRequestsTrace() { |
| @@ -1078,6 +1079,9 @@ |
| if (cache_.get()) |
| cache_->clear(); |
| if (ipv6_probe_monitoring_) { |
| + DCHECK(!shutdown_); |
| + if (shutdown_) |
| + return; |
| DiscardIPv6ProbeJob(); |
| ipv6_probe_job_ = new IPv6ProbeJob(this); |
| ipv6_probe_job_->Start(); |