Commit be5c616c authored by eroman@chromium.org's avatar eroman@chromium.org

Avoid printing log errors during shutdown of HostResolverImpl when there are...

Avoid printing log errors during shutdown of HostResolverImpl when there are still requests outstanding.
BUG=49692
Review URL: http://codereview.chromium.org/3023011

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53837 0039d316-1c4b-4281-b951-d872f2087c98
parent c1d0d81f
......@@ -907,13 +907,14 @@ void HostResolverImpl::ProbeIPv6Support() {
void HostResolverImpl::Shutdown() {
DCHECK(CalledOnValidThread());
shutdown_ = true;
// Cancel the outstanding jobs.
for (JobMap::iterator it = jobs_.begin(); it != jobs_.end(); ++it)
it->second->Cancel();
jobs_.clear();
DiscardIPv6ProbeJob();
shutdown_ = true;
}
void HostResolverImpl::SetPoolConstraints(JobPoolIndex pool_index,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment