summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authoreroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-27 21:12:51 +0000
committereroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-27 21:12:51 +0000
commitbe5c616c2fc815e88b917e56c5076df3d260ab5c (patch)
tree913718631a2f94d7e5d815fb44f02bb996246273 /net
parentc1d0d81f1fbb7de859d0d6aba90b0a1768c9d7a6 (diff)
downloadchromium_src-be5c616c2fc815e88b917e56c5076df3d260ab5c.zip
chromium_src-be5c616c2fc815e88b917e56c5076df3d260ab5c.tar.gz
chromium_src-be5c616c2fc815e88b917e56c5076df3d260ab5c.tar.bz2
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
Diffstat (limited to 'net')
-rw-r--r--net/base/host_resolver_impl.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/base/host_resolver_impl.cc b/net/base/host_resolver_impl.cc
index 0f2e5f0..8d5fe26 100644
--- a/net/base/host_resolver_impl.cc
+++ b/net/base/host_resolver_impl.cc
@@ -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,