Commit 378ad837 authored by Youness Alaoui's avatar Youness Alaoui

Correctly add a relay candidate

parent a7eaf5fe
......@@ -431,7 +431,6 @@ discovery_add_relay_candidate (
candidate = nice_candidate_new (NICE_CANDIDATE_TYPE_RELAYED);
if (candidate) {
if (relay_socket) {
if (agent->compatibility == NICE_COMPATIBILITY_GOOGLE) {
candidate->priority = nice_candidate_jingle_priority (candidate) * 1000;
} else if (agent->compatibility == NICE_COMPATIBILITY_MSN) {
......@@ -478,7 +477,6 @@ discovery_add_relay_candidate (
/* error: udp socket memory allocation */
errors = TRUE;
}
}
/* clean up after errors */
if (errors) {
......
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