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

Unified Diff: webrtc/base/network.cc

Issue 2054583002: Do not reconnect the network change signal each time the network manager is started (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fixed spacing Created 4 years, 6 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: webrtc/base/network.cc
diff --git a/webrtc/base/network.cc b/webrtc/base/network.cc
index 152bcdf671f38d7ac0e0a1a12b24300bab5d64fe..d2b353160cce653d2b784bf0afb014ee95cde7c3 100644
--- a/webrtc/base/network.cc
+++ b/webrtc/base/network.cc
@@ -761,10 +761,9 @@ void BasicNetworkManager::StartNetworkMonitor() {
if (!network_monitor_) {
return;
}
+ network_monitor_->SignalNetworksChanged.connect(
+ this, &BasicNetworkManager::OnNetworksChanged);
}
-
- network_monitor_->SignalNetworksChanged.connect(
- this, &BasicNetworkManager::OnNetworksChanged);
network_monitor_->Start();
}
« 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