Qingsi Wang ecd3054b56 Replace a broken assumption in candidate gathering for mDNS candidates.
The gathering of host candidates with mDNS names is asynchronous and its
completion can happen after a srflx candidate is gathered by the same
underlying socket. We have a broken check in UDPPort::CreateConnection()
that assumes the gathering of host and srflx candidates is sequential.

This CL also does minor refactoring and clean-up.

Bug: chromium:944577
Change-Id: Ic28136a9515081f40b232a22fcbf4209814ed33a
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/138043
Reviewed-by: Steve Anton <steveanton@webrtc.org>
Reviewed-by: Jeroen de Borst <jeroendb@webrtc.org>
Reviewed-by: Amit Hilbuch <amithi@webrtc.org>
Commit-Queue: Qingsi Wang <qingsi@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#28030}
2019-05-22 22:58:58 +00:00
..
2019-01-25 20:29:58 +00:00
2019-05-21 14:44:11 +00:00
2019-01-25 20:29:58 +00:00
2018-10-18 09:41:22 +00:00
2019-02-16 11:11:45 +00:00
2019-01-30 13:03:37 +00:00
2019-01-30 13:03:37 +00:00
2019-04-24 11:18:55 +00:00
2019-04-24 11:18:55 +00:00
2019-03-26 09:41:20 +00:00
2019-03-26 09:41:20 +00:00
2019-05-22 10:32:25 +00:00
2019-05-22 10:32:25 +00:00