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 (
* STATE_GATHERING and continue through the states to give client code a nice
* logical progression. See http://phabricator.freedesktop.org/D218 for
* 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,
NICE_COMPONENT_STATE_CONNECTING);
if (component->state < NICE_COMPONENT_STATE_CONNECTED)
......@@ -5254,7 +5255,8 @@ nice_agent_set_selected_remote_candidate (
* STATE_GATHERING and continue through the states to give client code a nice
* logical progression. See http://phabricator.freedesktop.org/D218 for
* 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,
NICE_COMPONENT_STATE_CONNECTING);
if (component->state < NICE_COMPONENT_STATE_CONNECTED)
......
......@@ -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
* logical progression. See http://phabricator.freedesktop.org/D218 for
* 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,
NICE_COMPONENT_STATE_CONNECTING);
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