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

Reset to connecting if reconnected after failed

parent 9c1a41b0
...@@ -5066,7 +5066,8 @@ nice_agent_set_selected_pair ( ...@@ -5066,7 +5066,8 @@ nice_agent_set_selected_pair (
* STATE_GATHERING and continue through the states to give client code a nice * STATE_GATHERING and continue through the states to give client code a nice
* logical progression. See http://phabricator.freedesktop.org/D218 for * logical progression. See http://phabricator.freedesktop.org/D218 for
* discussion. */ * discussion. */
if (component->state < NICE_COMPONENT_STATE_CONNECTING) if (component->state < NICE_COMPONENT_STATE_CONNECTING ||
component->state == NICE_COMPONENT_STATE_FAILED)
agent_signal_component_state_change (agent, stream_id, component_id, agent_signal_component_state_change (agent, stream_id, component_id,
NICE_COMPONENT_STATE_CONNECTING); NICE_COMPONENT_STATE_CONNECTING);
if (component->state < NICE_COMPONENT_STATE_CONNECTED) if (component->state < NICE_COMPONENT_STATE_CONNECTED)
...@@ -5254,7 +5255,8 @@ nice_agent_set_selected_remote_candidate ( ...@@ -5254,7 +5255,8 @@ nice_agent_set_selected_remote_candidate (
* STATE_GATHERING and continue through the states to give client code a nice * STATE_GATHERING and continue through the states to give client code a nice
* logical progression. See http://phabricator.freedesktop.org/D218 for * logical progression. See http://phabricator.freedesktop.org/D218 for
* discussion. */ * discussion. */
if (component->state < NICE_COMPONENT_STATE_CONNECTING) if (component->state < NICE_COMPONENT_STATE_CONNECTING ||
component->state == NICE_COMPONENT_STATE_FAILED)
agent_signal_component_state_change (agent, stream_id, component_id, agent_signal_component_state_change (agent, stream_id, component_id,
NICE_COMPONENT_STATE_CONNECTING); NICE_COMPONENT_STATE_CONNECTING);
if (component->state < NICE_COMPONENT_STATE_CONNECTED) if (component->state < NICE_COMPONENT_STATE_CONNECTED)
......
...@@ -1385,7 +1385,8 @@ static void priv_update_check_list_state_for_ready (NiceAgent *agent, NiceStream ...@@ -1385,7 +1385,8 @@ static void priv_update_check_list_state_for_ready (NiceAgent *agent, NiceStream
/* Continue through the states to give client code a nice /* Continue through the states to give client code a nice
* logical progression. See http://phabricator.freedesktop.org/D218 for * logical progression. See http://phabricator.freedesktop.org/D218 for
* discussion. */ * discussion. */
if (component->state < NICE_COMPONENT_STATE_CONNECTING) if (component->state < NICE_COMPONENT_STATE_CONNECTING ||
component->state == NICE_COMPONENT_STATE_FAILED)
agent_signal_component_state_change (agent, stream->id, component->id, agent_signal_component_state_change (agent, stream->id, component->id,
NICE_COMPONENT_STATE_CONNECTING); NICE_COMPONENT_STATE_CONNECTING);
if (component->state < NICE_COMPONENT_STATE_CONNECTED) if (component->state < NICE_COMPONENT_STATE_CONNECTED)
......
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