summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabrice Bellet <fabrice@bellet.info>2017-07-02 16:02:09 +0200
committerOlivier CrĂȘte <olivier.crete@collabora.com>2017-09-05 15:03:44 -0400
commit14102d44449d2eb4148588ce54fa897fa13b87ad (patch)
treed9026566c78067409297d34b844e2aa94def9fb9
parent72dd26a3368d3506fe8faca7067a02784fb5f0fd (diff)
downloadlibnice-14102d44449d2eb4148588ce54fa897fa13b87ad.tar.gz
conncheck: change state before updating nominated pairs
When a pair is nominated while in state failed, we first move back to state connecting, then we update the selected pair, and finally we move to state connected.
-rw-r--r--agent/conncheck.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/conncheck.c b/agent/conncheck.c
index 0e3ce88..e584c0e 100644
--- a/agent/conncheck.c
+++ b/agent/conncheck.c
@@ -2114,11 +2114,11 @@ static void priv_mark_pair_nominated (NiceAgent *agent, NiceStream *stream, Nice
}
if (pair->valid) {
- priv_update_selected_pair (agent, component, pair);
/* Do not step down to CONNECTED if we're already at state READY*/
if (component->state == NICE_COMPONENT_STATE_FAILED)
agent_signal_component_state_change (agent,
stream->id, component->id, NICE_COMPONENT_STATE_CONNECTING);
+ priv_update_selected_pair (agent, component, pair);
if (component->state == NICE_COMPONENT_STATE_CONNECTING)
/* step: notify the client of a new component state (must be done
* before the possible check list state update step */