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

Issue 2054583002: Do not reconnect the network change signal each time the network manager is started (Closed)

Created:
4 years, 6 months ago by skvlad
Modified:
4 years, 6 months ago
Reviewers:
honghaiz3, pthatcher1
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Do not reconnect the network change signal each time the network manager is started Due to a bug, the NetworkManager was reconnecting to the NetworkMonitor's NetworkChanged signal every time the network manager is stopped and restarted. After each calls, one more listener was added to the signal and never removed - which caused OnNetworksChanged to be called multiple times on each actual network change. Not sure if this had any negative effect other than the extraneous "Network changed" lines in WebRTC logs, but it wasn't working correctly either way. The fix is to only subscribe to the signal once, when the NetworkMonitor is created. TBR=pthatcher BUG= NOTRY=True Committed: https://crrev.com/979c268830794316dc1d05ea7242eb7310f6bc23 Cr-Commit-Position: refs/heads/master@{#13105}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Fixed spacing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -3 lines) Patch
M webrtc/base/network.cc View 1 1 chunk +2 lines, -3 lines 0 comments Download

Messages

Total messages: 21 (11 generated)
skvlad
4 years, 6 months ago (2016-06-08 22:31:16 UTC) #2
honghaiz3
lgtm Thanks for fixing this! Since this is a confirmed fix and it is a ...
4 years, 6 months ago (2016-06-09 16:18:41 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2054583002/20001
4 years, 6 months ago (2016-06-09 23:10:41 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_dbg/builds/14038)
4 years, 6 months ago (2016-06-09 23:18:32 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2054583002/20001
4 years, 6 months ago (2016-06-10 01:57:24 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_dbg/builds/14041)
4 years, 6 months ago (2016-06-10 02:03:54 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2054583002/20001
4 years, 6 months ago (2016-06-10 22:22:11 UTC) #16
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 6 months ago (2016-06-10 22:24:23 UTC) #18
commit-bot: I haz the power
CQ bit was unchecked
4 years, 6 months ago (2016-06-10 22:24:26 UTC) #19
commit-bot: I haz the power
4 years, 6 months ago (2016-06-10 22:26:31 UTC) #21
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/979c268830794316dc1d05ea7242eb7310f6bc23
Cr-Commit-Position: refs/heads/master@{#13105}

Powered by Google App Engine
This is Rietveld 408576698