agent: Remove duplicated early return
authorOlivier Crête <olivier.crete@collabora.com>
Mon, 3 May 2021 21:04:34 +0000 (17:04 -0400)
committerOlivier Crête <olivier.crete@collabora.com>
Mon, 3 May 2021 22:42:43 +0000 (18:42 -0400)
The type is already checked to not be peer reflexive earlier.

agent/agent.c

index 75e2275..f65696b 100644 (file)
@@ -3876,10 +3876,6 @@ static gboolean priv_add_remote_candidate (
   else {
     /* case 2: add a new candidate */
 
-    if (type == NICE_CANDIDATE_TYPE_PEER_REFLEXIVE) {
-      nice_debug("Agent %p : Warning: ignoring externally set peer-reflexive candidate!", agent);
-      return FALSE;
-    }
     candidate = nice_candidate_new (type);
 
     candidate->stream_id = stream_id;