summaryrefslogtreecommitdiff
path: root/agent/agent.c
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2015-09-20 16:53:26 -0400
committerOlivier CrĂȘte <olivier.crete@collabora.com>2016-05-27 16:45:25 -0400
commitb72b9153d91a93a550c4ec40fce5f9a18e7eaac6 (patch)
treeffc72dfc25ba8312cbcc1fb121746449c16323fb /agent/agent.c
parent059a0e33c973a54c44f7c4fd1e766155f6078f80 (diff)
downloadlibnice-b72b9153d91a93a550c4ec40fce5f9a18e7eaac6.tar.gz
agent: Restrict transitions to gathering
Only allow transitions to gathering from disconnected or failed states.
Diffstat (limited to 'agent/agent.c')
-rw-r--r--agent/agent.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/agent/agent.c b/agent/agent.c
index fb4a7b1..109a0cd 100644
--- a/agent/agent.c
+++ b/agent/agent.c
@@ -2149,6 +2149,8 @@ void agent_signal_component_state_change (NiceAgent *agent, guint stream_id, gui
/* If set_remote_candidates() is called with new candidates after
* reaching FAILED: */
TRANSITION (FAILED, CONNECTING) ||
+ /* if new relay servers are added to a failed connection */
+ TRANSITION (FAILED, GATHERING) ||
/* Possible by calling set_remote_candidates() without calling
* nice_agent_gather_candidates(): */
TRANSITION (DISCONNECTED, CONNECTING));