From: Blaise Date: Sun, 23 Aug 2020 14:32:55 -0500 Subject: Disable the DIAL repeating discovery This causes unnecessary SSDP network spam License: GPL-3.0-only - https://spdx.org/licenses/GPL-3.0-only.html Change-Id: Ic97cfd2f7eaee3a8ca42b6b7afeba3ed1a29abc6 --- chrome/browser/media/router/discovery/dial/dial_registry.cc | 6 ------ 1 file changed, 6 deletions(-) diff --git a/chrome/browser/media/router/discovery/dial/dial_registry.cc b/chrome/browser/media/router/discovery/dial/dial_registry.cc --- a/chrome/browser/media/router/discovery/dial/dial_registry.cc +++ b/chrome/browser/media/router/discovery/dial/dial_registry.cc @@ -155,10 +155,6 @@ void DialRegistry::StartPeriodicDiscovery() { return; dial_ = CreateDialService(); - DoDiscovery(); - repeating_timer_ = std::make_unique(); - repeating_timer_->Start(FROM_HERE, refresh_interval_delta_, this, - &DialRegistry::DoDiscovery); // Always send the current device list with the next discovery request. This // may not be necessary, but is done to match previous behavior. ++registry_generation_; @@ -175,8 +171,6 @@ void DialRegistry::StopPeriodicDiscovery() { if (!dial_) return; - repeating_timer_->Stop(); - repeating_timer_.reset(); ClearDialService(); } -- 2.40.1