Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(308)

Unified Diff: net/base/host_resolver_impl.cc

Issue 3023011: Avoid printing log errors during shutdown of HostResolverImpl when there are ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: re-uploading from another client Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/host_resolver_impl.cc
===================================================================
--- net/base/host_resolver_impl.cc (revision 53831)
+++ net/base/host_resolver_impl.cc (working copy)
@@ -907,13 +907,14 @@
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,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698