[Nearby] Reuse IpcNetworkManager for peer connections
Previously a new IpcNetworkManager was created for each PeerConnection. IpcNetworkManager calls StartNetworkNotifications on the p2p_socket_manager_ which is not re-created for each PeerConnection. The second call failed and ended up blocking ice candidate gathering because it was waiting for the network list to come through which it never did. The simple solution here is to just re-used the IpcNetworkManager for each new peer connection in the same way the socket_factory_ is reused. See the bug for more details. Fixed: 1142717 Change-Id: I033e986361a7c3a7acce3a7dea12e1f51c3b3b75 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2503889Reviewed-by:Ryan Hansberry <hansberry@chromium.org> Reviewed-by:
Richard Knoll <knollr@chromium.org> Commit-Queue: James Vecore <vecore@google.com> Cr-Commit-Position: refs/heads/master@{#821512}
Showing
Please register or sign in to comment