37 lines
1.3 KiB
Diff
37 lines
1.3 KiB
Diff
From: Blaise <BlaiseD@GMail.com>
|
|
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
|
|
---
|
|
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<base::RepeatingTimer>();
|
|
- 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.25.1
|