Commit f4be0b23 authored by Olivier Crête's avatar Olivier Crête

component: On ICE restart reset selected pair priority to 0

This is to ensure that the result of the new negotiation will always
have priority.
parent 576b6b79
...@@ -371,6 +371,9 @@ component_restart (Component *cmp) ...@@ -371,6 +371,9 @@ component_restart (Component *cmp)
(GDestroyNotify) incoming_check_free); (GDestroyNotify) incoming_check_free);
cmp->incoming_checks = NULL; cmp->incoming_checks = NULL;
/* Reset the priority to 0 to make sure we get a new pair */
cmp->selected_pair.priority = 0;
/* note: component state managed by agent */ /* note: component state managed by agent */
} }
......
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