Commit 692b1055 authored by Fabrice Bellet's avatar Fabrice Bellet

conncheck: merge two cascaded conditions

parent db9c2ca6
......@@ -3557,8 +3557,7 @@ static CandidateCheckPair *priv_process_response_check_for_reflexive(NiceAgent *
nice_component_add_valid_candidate (agent, component, remote_candidate);
}
else {
if (!local_cand) {
if (!agent->force_relay) {
if (local_cand == NULL && !agent->force_relay) {
/* step: find a new local candidate, see RFC 5245 7.1.3.2.1.
* "Discovering Peer Reflexive Candidates"
*
......@@ -3577,7 +3576,6 @@ static CandidateCheckPair *priv_process_response_check_for_reflexive(NiceAgent *
"with transport %s", agent, local_cand,
priv_candidate_transport_to_string (local_cand->transport));
}
}
/* step: add a new discovered pair (see RFC 5245 7.1.3.2.2
"Constructing a Valid Pair") */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment