summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2021-07-20 13:04:17 -0400
committerOlivier CrĂȘte <olivier.crete@ocrete.ca>2021-07-20 22:46:37 +0000
commit52268e7e8910d7432a3e9601a467528738936374 (patch)
tree2797d4542d117240bc96c974078a1481d8a25b92
parent40efff0361648ee58ea26de5696a467de3c42822 (diff)
downloadlibnice-52268e7e8910d7432a3e9601a467528738936374.tar.gz
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 b20ac5ba7b731f2cc698f26e8def28a518de058e
-rw-r--r--agent/agent.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/agent/agent.c b/agent/agent.c
index f65696b..261fe64 100644
--- a/agent/agent.c
+++ b/agent/agent.c
@@ -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