diff options
author | Jose Antonio Santos Cadenas <santoscadenas@gmail.com> | 2016-01-29 19:04:54 +0100 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@ocrete.ca> | 2018-12-27 20:34:47 +0000 |
commit | 7587da3f024e21ed7896b7c78839a88741473f77 (patch) | |
tree | 5660bd5cfb73e9ef5f1626ff44148afd5cf7b782 /agent | |
parent | 3d4cdee13fcb44c84828b27b740b89a20f14ef02 (diff) | |
download | libnice-7587da3f024e21ed7896b7c78839a88741473f77.tar.gz |
conncheck.c: Fix negotiation problem
When a peer reflexive candidate is discovered, it is added to the
list of connection checks, but is is not nominated by default.
This causes a problem if parent pair is already nominated and
the remote peer does not send more requests because it has already
selected a candidate. (i.e.: This is the case of WebRtc in Firefox)
Diffstat (limited to 'agent')
-rw-r--r-- | agent/conncheck.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/conncheck.c b/agent/conncheck.c index 50d7984..2974415 100644 --- a/agent/conncheck.c +++ b/agent/conncheck.c @@ -2946,7 +2946,7 @@ static CandidateCheckPair *priv_add_peer_reflexive_pair (NiceAgent *agent, guint else pair->priority = nice_candidate_pair_priority (pair->remote->priority, pair->local->priority); - pair->nominated = FALSE; + pair->nominated = parent_pair->nominated; pair->prflx_priority = ensure_unique_priority (stream, component, peer_reflexive_candidate_priority (agent, local_cand)); nice_debug ("Agent %p : added a new peer-discovered pair with " |