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
be2706da
Commit
be2706da
authored
May 20, 2010
by
Olivier Crête
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
discovery: Remove useless checks from priv_add_local_candidate_pruned
parent
920e299a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
agent/discovery.c
agent/discovery.c
+4
-7
No files found.
agent/discovery.c
View file @
be2706da
...
...
@@ -252,11 +252,11 @@ void refresh_cancel (CandidateRefresh *refresh)
*/
static
gboolean
priv_add_local_candidate_pruned
(
Component
*
component
,
NiceCandidate
*
candidate
)
{
GSList
*
modified_list
,
*
i
;
GSList
*
i
;
for
(
i
=
component
->
local_candidates
;
i
;
i
=
i
->
next
)
{
NiceCandidate
*
c
=
i
->
data
;
if
(
nice_address_equal
(
&
c
->
base_addr
,
&
candidate
->
base_addr
)
&&
nice_address_equal
(
&
c
->
addr
,
&
candidate
->
addr
))
{
nice_debug
(
"Candidate %p (component-id %u) redundant, ignoring."
,
candidate
,
component
->
id
);
...
...
@@ -264,11 +264,8 @@ static gboolean priv_add_local_candidate_pruned (Component *component, NiceCandi
}
}
modified_list
=
g_slist_append
(
component
->
local_candidates
,
candidate
);
if
(
modified_list
)
{
component
->
local_candidates
=
modified_list
;
}
component
->
local_candidates
=
g_slist_append
(
component
->
local_candidates
,
candidate
);
return
TRUE
;
}
...
...
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