Commit ca1e7d45 authored by Olivier Crête's avatar Olivier Crête Committed by Olivier Crête

agent: Simplify accepting state changes to FAILED

The component can go from any state to FAILED, so simplify
that and make it explicit.
parent 52268e7e
...@@ -2573,11 +2573,7 @@ void agent_signal_component_state_change (NiceAgent *agent, guint stream_id, gui ...@@ -2573,11 +2573,7 @@ void agent_signal_component_state_change (NiceAgent *agent, guint stream_id, gui
g_assert (/* Can (almost) always transition to FAILED (including g_assert (/* Can (almost) always transition to FAILED (including
* DISCONNECTED → FAILED which happens if one component fails * DISCONNECTED → FAILED which happens if one component fails
* before another leaves DISCONNECTED): */ * before another leaves DISCONNECTED): */
TRANSITION (DISCONNECTED, FAILED) || (new_state == NICE_COMPONENT_STATE_FAILED) ||
TRANSITION (GATHERING, FAILED) ||
TRANSITION (CONNECTING, FAILED) ||
TRANSITION (CONNECTED, FAILED) ||
TRANSITION (READY, FAILED) ||
/* Standard progression towards a ready connection: */ /* Standard progression towards a ready connection: */
TRANSITION (DISCONNECTED, GATHERING) || TRANSITION (DISCONNECTED, GATHERING) ||
TRANSITION (GATHERING, CONNECTING) || TRANSITION (GATHERING, CONNECTING) ||
......
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