Commit 52268e7e authored by Olivier Crête's avatar Olivier Crête Committed by Olivier Crête

agent: Accept any transition back to the gathering state

When doing a ICE restart, which can be done from any state, we can
always go back into the gathering state.

This fixes a regression introduced by b20ac5ba
parent 40efff03
......@@ -2596,9 +2596,9 @@ void agent_signal_component_state_change (NiceAgent *agent, guint stream_id, gui
/* If a tcp socket of connected pair is disconnected, in
* conn_check_prune_socket(): */
TRANSITION (CONNECTED, CONNECTING) ||
/* with ICE restart in nice_stream_restart() */
TRANSITION (CONNECTED, GATHERING) ||
TRANSITION (READY, GATHERING));
/* with ICE restart in nice_stream_restart(),
* it can always go back to gathering */
(new_state == NICE_COMPONENT_STATE_GATHERING));
#undef TRANSITION
......
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