Commit 932fa92f authored by Youness Alaoui's avatar Youness Alaoui

Do not step down to CONNECTED if we're already at state READY

parent 50fb51ff
...@@ -1615,16 +1615,18 @@ static gboolean priv_map_reply_to_conn_check_request (NiceAgent *agent, Stream * ...@@ -1615,16 +1615,18 @@ static gboolean priv_map_reply_to_conn_check_request (NiceAgent *agent, Stream *
* "Discovering Peer Reflexive Candidates" ICE ID-19) */ * "Discovering Peer Reflexive Candidates" ICE ID-19) */
ok_pair = priv_process_response_check_for_peer_reflexive(agent, stream, component, ok_pair = priv_process_response_check_for_peer_reflexive(agent, stream, component,
p, sockptr, &sockaddr, local_candidate, remote_candidate); p, sockptr, &sockaddr, local_candidate, remote_candidate);
if (!ok_pair) if (!ok_pair)
ok_pair = p; ok_pair = p;
/* step: notify the client of a new component state (must be done /* Do not step down to CONNECTED if we're already at state READY*/
* before the possible check list state update step */ if (component->state != NICE_COMPONENT_STATE_READY) {
agent_signal_component_state_change (agent, /* step: notify the client of a new component state (must be done
stream->id, * before the possible check list state update step */
component->id, agent_signal_component_state_change (agent,
NICE_COMPONENT_STATE_CONNECTED); stream->id, component->id, NICE_COMPONENT_STATE_CONNECTED);
}
/* step: updating nominated flag (ICE 7.1.2.2.4 "Updating the /* step: updating nominated flag (ICE 7.1.2.2.4 "Updating the
......
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