diff options
Diffstat (limited to 'net/android/network_change_notifier_android.cc')
-rw-r--r-- | net/android/network_change_notifier_android.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/android/network_change_notifier_android.cc b/net/android/network_change_notifier_android.cc index 36ebda6..3224c63 100644 --- a/net/android/network_change_notifier_android.cc +++ b/net/android/network_change_notifier_android.cc @@ -172,6 +172,9 @@ NetworkChangeNotifierAndroid::NetworkChangeNotifierAndroid( delegate_->AddObserver(this); dns_config_service_thread_->StartWithOptions( base::Thread::Options(base::MessageLoop::TYPE_IO, 0)); + // Wait until Init is called on the DNS config thread before + // calling InitAfterStart. + dns_config_service_thread_->WaitUntilThreadStarted(); dns_config_service_thread_->InitAfterStart(); } |