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
...@@ -1616,15 +1616,17 @@ static gboolean priv_map_reply_to_conn_check_request (NiceAgent *agent, Stream * ...@@ -1616,15 +1616,17 @@ static gboolean priv_map_reply_to_conn_check_request (NiceAgent *agent, Stream *
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;
/* Do not step down to CONNECTED if we're already at state READY*/
if (component->state != NICE_COMPONENT_STATE_READY) {
/* step: notify the client of a new component state (must be done /* step: notify the client of a new component state (must be done
* before the possible check list state update step */ * before the possible check list state update step */
agent_signal_component_state_change (agent, agent_signal_component_state_change (agent,
stream->id, stream->id, component->id, NICE_COMPONENT_STATE_CONNECTED);
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