Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libnice
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
libnice
Commits
b72b9153
Commit
b72b9153
authored
Sep 20, 2015
by
Olivier Crête
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
agent: Restrict transitions to gathering
Only allow transitions to gathering from disconnected or failed states.
parent
059a0e33
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
agent/agent.c
agent/agent.c
+2
-0
agent/discovery.c
agent/discovery.c
+6
-4
No files found.
agent/agent.c
View file @
b72b9153
...
...
@@ -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
));
...
...
agent/discovery.c
View file @
b72b9153
...
...
@@ -1022,10 +1022,12 @@ static gboolean priv_discovery_tick_unlocked (gpointer pointer)
(
cand
->
type
==
NICE_CANDIDATE_TYPE_SERVER_REFLEXIVE
||
cand
->
type
==
NICE_CANDIDATE_TYPE_RELAYED
))
{
agent_signal_component_state_change
(
agent
,
cand
->
stream
->
id
,
cand
->
component
->
id
,
NICE_COMPONENT_STATE_GATHERING
);
if
(
cand
->
component
->
state
==
NICE_COMPONENT_STATE_DISCONNECTED
||
cand
->
component
->
state
==
NICE_COMPONENT_STATE_FAILED
)
agent_signal_component_state_change
(
agent
,
cand
->
stream
->
id
,
cand
->
component
->
id
,
NICE_COMPONENT_STATE_GATHERING
);
if
(
cand
->
type
==
NICE_CANDIDATE_TYPE_SERVER_REFLEXIVE
)
{
buffer_len
=
stun_usage_bind_create
(
&
cand
->
stun_agent
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment