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
bed24e72
Commit
bed24e72
authored
Jan 20, 2011
by
Youness Alaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Send new-candidate signals for host cands only if the gathering was successful
parent
bd11e72d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
agent/agent.c
agent/agent.c
+10
-0
agent/discovery.c
agent/discovery.c
+0
-1
No files found.
agent/agent.c
View file @
bed24e72
...
...
@@ -1856,6 +1856,16 @@ nice_agent_gather_candidates (
stream
->
gathering
=
TRUE
;
/* Only signal the new candidates after we're sure that the gathering was
* succesfful. But before sending gathering-done */
for
(
n
=
0
;
n
<
stream
->
n_components
;
n
++
)
{
Component
*
component
=
stream_find_component_by_id
(
stream
,
n
+
1
);
for
(
i
=
component
->
local_candidates
;
i
;
i
=
i
->
next
)
{
NiceCandidate
*
candidate
=
i
->
data
;
agent_signal_new_candidate
(
agent
,
candidate
);
}
}
/* note: no async discoveries pending, signal that we are ready */
if
(
agent
->
discovery_unsched_items
==
0
)
{
nice_debug
(
"Agent %p: Candidate gathering FINISHED, no scheduled items."
,
...
...
agent/discovery.c
View file @
bed24e72
...
...
@@ -491,7 +491,6 @@ NiceCandidate *discovery_add_local_host_candidate (
goto
errors
;
component
->
sockets
=
g_slist_append
(
component
->
sockets
,
udp_socket
);
agent_signal_new_candidate
(
agent
,
candidate
);
return
candidate
;
...
...
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