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
68b829bb
Commit
68b829bb
authored
Dec 04, 2008
by
Youness Alaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set a component to FAILED only if it had remote candidates set
parent
2cd215cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
agent/conncheck.c
agent/conncheck.c
+8
-2
No files found.
agent/conncheck.c
View file @
68b829bb
...
@@ -837,6 +837,9 @@ static void priv_update_check_list_failed_components (NiceAgent *agent, Stream *
...
@@ -837,6 +837,9 @@ static void priv_update_check_list_failed_components (NiceAgent *agent, Stream *
/* note: iterate the conncheck list for each component separately */
/* note: iterate the conncheck list for each component separately */
for
(
c
=
0
;
c
<
components
;
c
++
)
{
for
(
c
=
0
;
c
<
components
;
c
++
)
{
Component
*
comp
=
NULL
;
agent_find_component
(
agent
,
stream
->
id
,
c
,
NULL
,
&
comp
);
for
(
i
=
stream
->
conncheck_list
;
i
;
i
=
i
->
next
)
{
for
(
i
=
stream
->
conncheck_list
;
i
;
i
=
i
->
next
)
{
CandidateCheckPair
*
p
=
i
->
data
;
CandidateCheckPair
*
p
=
i
->
data
;
...
@@ -846,8 +849,11 @@ static void priv_update_check_list_failed_components (NiceAgent *agent, Stream *
...
@@ -846,8 +849,11 @@ static void priv_update_check_list_failed_components (NiceAgent *agent, Stream *
break
;
break
;
}
}
}
}
/* note: all checks have failed */
if
(
i
==
NULL
)
/* note: all checks have failed
* Set the component to FAILED only if it actually had remote candidates
* that failed.. */
if
(
i
==
NULL
&&
comp
!=
NULL
&&
comp
->
remote_candidates
!=
NULL
)
agent_signal_component_state_change
(
agent
,
agent_signal_component_state_change
(
agent
,
stream
->
id
,
stream
->
id
,
(
c
+
1
),
/* component-id */
(
c
+
1
),
/* component-id */
...
...
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