summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2014-09-30 18:28:24 -0400
committerOlivier CrĂȘte <olivier.crete@collabora.com>2014-10-09 16:25:32 -0400
commitf4be0b2349786c6cf4082a8c6e51149cd7b4e0a6 (patch)
treeb5708bb1824bc72789601891e10f948eacc30a71
parent576b6b79b677b6467540279dd3586e50dfeac162 (diff)
downloadlibnice-f4be0b2349786c6cf4082a8c6e51149cd7b4e0a6.tar.gz
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.
-rw-r--r--agent/component.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/agent/component.c b/agent/component.c
index 4c11b41..539d387 100644
--- a/agent/component.c
+++ b/agent/component.c
@@ -371,6 +371,9 @@ component_restart (Component *cmp)
(GDestroyNotify) incoming_check_free);
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 */
}