commit | 02293096f9689fee3d32defa77dca227cc1eee90 | [log] [tgz] |
---|---|---|
author | Jonas Oreland <jonaso@webrtc.org> | Tue Apr 12 08:54:19 2022 |
committer | WebRTC LUCI CQ <webrtc-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Apr 12 09:28:57 2022 |
tree | 61e1467f9d910e8247e8347b45e26c12793f049e | |
parent | 86aa03e238a449eb7672d5592e76f58884c1af2d [diff] |
Reset all maps in AndroidNetworkMonitor Start()/Stop() This cl/ fixes another race condition with the recent additions to NetworkMonitorAutoDetect (getAllNetworksFromCache). The getAllNetworksFromCache-feature uses the by the Android team preferred way of enumerating networks, i.e to register network listeners. Th recent fix to add IsAdapterAvailable, https://webrtc-review.googlesource.com/c/src/+/257400 contained a bug in that the adapter_type_by_name_ map was not reset either on disconnect or Start/Stop. This cl/ addresses that including unit test. It also de-obfuscates NetworkMonitor so that it always calls NotifyOfActiveNetworkList on startMonitoring even if list.size() == 0. This should not matter but makes code easier to understand. Bug: webrtc:13741 Change-Id: I438b877eebf769a8b2e7292b697ef1c0a349b24f Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/258721 Reviewed-by: Harald Alvestrand <hta@webrtc.org> Commit-Queue: Jonas Oreland <jonaso@webrtc.org> Cr-Commit-Position: refs/heads/main@{#36530}
WebRTC is a free, open software project that provides browsers and mobile applications with Real-Time Communications (RTC) capabilities via simple APIs. The WebRTC components have been optimized to best serve this purpose.
Our mission: To enable rich, high-quality RTC applications to be developed for the browser, mobile platforms, and IoT devices, and allow them all to communicate via a common set of protocols.
The WebRTC initiative is a project supported by Google, Mozilla and Opera, amongst others.
See here for instructions on how to get started developing with the native code.
Authoritative list of directories that contain the native API header files.