Revert "conncheck: Don't lookup prflx pair for UDP candidates"
authorFabrice Bellet <fabrice@bellet.info>
Tue, 4 Jun 2019 17:34:22 +0000 (19:34 +0200)
committerOlivier CrĂȘte <olivier.crete@collabora.com>
Thu, 4 Jul 2019 21:03:43 +0000 (17:03 -0400)
This reverts commit ca47519feda9d4dad38a06e2f7d94c0afc501364.

agent/conncheck.c

index 3c4c889..ca3ed6b 100644 (file)
@@ -3052,13 +3052,11 @@ static CandidateCheckPair *priv_process_response_check_for_reflexive(NiceAgent *
        * of a TCP-ACTIVE local candidate, so we find it even if an incoming
        * check matched an existing pair because it could be the original
        * ACTIVE-PASSIVE candidate pair which was retriggered */
-      if (local_cand->transport != NICE_CANDIDATE_TRANSPORT_UDP) {
-        for (i = stream->conncheck_list; i; i = i->next) {
-          CandidateCheckPair *pair = i->data;
-          if (pair->local == cand && remote_candidate == pair->remote) {
-            new_pair = pair;
-            break;
-          }
+      for (i = stream->conncheck_list; i; i = i->next) {
+        CandidateCheckPair *pair = i->data;
+        if (pair->local == cand && remote_candidate == pair->remote) {
+          new_pair = pair;
+          break;
         }
       }
       break;