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
2462ca77
Commit
2462ca77
authored
Aug 20, 2009
by
Youness Alaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only prune pending checks once if there's a nominated pair, not 100 times for no reason
parent
801fac1f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
agent/conncheck.c
agent/conncheck.c
+10
-8
No files found.
agent/conncheck.c
View file @
2462ca77
...
...
@@ -1194,18 +1194,20 @@ static void priv_update_check_list_state_for_ready (NiceAgent *agent, Stream *st
++
succeeded
;
if
(
p
->
nominated
==
TRUE
)
{
++
nominated
;
/* Only go to READY if no checks are left in progress. If there are
* any that are kept, then this function will be called again when the
* conncheck tick timer finishes them all */
if
(
priv_prune_pending_checks
(
stream
,
p
->
component_id
)
==
0
)
{
agent_signal_component_state_change
(
agent
,
p
->
stream_id
,
p
->
component_id
,
NICE_COMPONENT_STATE_READY
);
}
}
}
}
}
if
(
nominated
>
0
)
{
/* Only go to READY if no checks are left in progress. If there are
* any that are kept, then this function will be called again when the
* conncheck tick timer finishes them all */
if
(
priv_prune_pending_checks
(
stream
,
component
->
id
)
==
0
)
{
agent_signal_component_state_change
(
agent
,
stream
->
id
,
component
->
id
,
NICE_COMPONENT_STATE_READY
);
}
}
nice_debug
(
"Agent %p : conn.check list status: %u nominated, %u succeeded, c-id %u."
,
agent
,
nominated
,
succeeded
,
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