Commit ac3f7b5e authored by Fabrice Bellet's avatar Fabrice Bellet Committed by Olivier Crête
Browse files

conncheck: honor the retransmit flag in case of role conflict

This other rare situation happens when a role conflict is detected by an
stun reply message, on a component that already has a nominated pair
with a higher priority. In that case, the retransmit flag should be
honored, and the pair with "role conflict" should not be retransmitted.
parent 6dd39694
Pipeline #142540 failed with stages
in 13 minutes and 30 seconds
......@@ -3784,6 +3784,12 @@ static gboolean priv_map_reply_to_conn_check_request (NiceAgent *agent, NiceStre
uint64_t tie;
gboolean controlled_mode;
if (!p->retransmit) {
nice_debug ("Agent %p : Role conflict with pair %p, not restarting",
agent, p);
return TRUE;
}
/* case: role conflict error, need to restart with new role */
nice_debug ("Agent %p : Role conflict with pair %p, restarting",
agent, p);
......
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