diff --git a/browser/tor/tor_launcher_factory.cc b/browser/tor/tor_launcher_factory.cc index d23221b903f6..a1e741e061cd 100644 --- a/browser/tor/tor_launcher_factory.cc +++ b/browser/tor/tor_launcher_factory.cc @@ -114,9 +114,13 @@ void TorLauncherFactory::LaunchTorProcess(const tor::TorConfig& config) { void TorLauncherFactory::OnTorControlCheckComplete() { DCHECK_CURRENTLY_ON(BrowserThread::UI); - tor_launcher_->Launch(config_, - base::BindOnce(&TorLauncherFactory::OnTorLaunched, - weak_ptr_factory_.GetWeakPtr())); + if (tor_launcher_.is_bound()) { + tor_launcher_->Launch(config_, + base::BindOnce(&TorLauncherFactory::OnTorLaunched, + weak_ptr_factory_.GetWeakPtr())); + } else { + is_starting_ = false; + } } void TorLauncherFactory::KillTorProcess() {