Chromium Code Reviews
DescriptionFix issues with NetworkMonitor singleton when used by multiple clients.
When you create multiple "PeerConnectionFactory"s, they end up using
the same NetworkMonitor singleton. But the second one's
"AndroidNetworkMonitor" class (in C++) wasn't getting the expected
network list update, and as a result it wasn't binding sockets to
networks successfully, acting as if the networks didn't exist.
The solution is just to move "updateActiveNetworkList" to
"startMonitoring". This CL also does some other minor
cleanup/refactoring, and fixes a more corner-casey issue where, if the
first PeerConnection is destroyed, the second one would stop receiving
network updates.
BUG=webrtc:7946
Review-Url: https://codereview.webrtc.org/2990693002
Cr-Commit-Position: refs/heads/master@{#19156}
Committed: https://chromium.googlesource.com/external/webrtc/+/54c721541d1c29ba3404705e8cb81d3efa7e5db2
Patch Set 1 #
Total comments: 1
Messages
Total messages: 9 (5 generated)
|
|||||||||||||||||||||||||||||||||||||