Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
libnice
libnice
Commits
bed24e72
Commit
bed24e72
authored
Jan 20, 2011
by
Youness Alaoui
Browse files
Send new-candidate signals for host cands only if the gathering was successful
parent
bd11e72d
Changes
2
Hide whitespace changes
Inline
Side-by-side
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
Supports
Markdown
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