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
28ab0b50
Commit
28ab0b50
authored
Apr 15, 2014
by
Olivier Crête
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stream: Clear connchecks on restart inside stream
parent
0e1c1099
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
agent/agent.c
agent/agent.c
+1
-4
agent/stream.c
agent/stream.c
+4
-1
agent/stream.h
agent/stream.h
+1
-1
No files found.
agent/agent.c
View file @
28ab0b50
...
@@ -3698,9 +3698,6 @@ nice_agent_restart (
...
@@ -3698,9 +3698,6 @@ nice_agent_restart (
agent_lock
();
agent_lock
();
/* step: clean up all connectivity checks */
conn_check_free
(
agent
);
/* step: regenerate tie-breaker value */
/* step: regenerate tie-breaker value */
priv_generate_tie_breaker
(
agent
);
priv_generate_tie_breaker
(
agent
);
...
@@ -3709,7 +3706,7 @@ nice_agent_restart (
...
@@ -3709,7 +3706,7 @@ nice_agent_restart (
/* step: reset local credentials for the stream and
/* step: reset local credentials for the stream and
* clean up the list of remote candidates */
* clean up the list of remote candidates */
stream_restart
(
stream
,
agent
->
rng
);
stream_restart
(
agent
,
stream
,
agent
->
rng
);
}
}
agent_unlock_and_emit
(
agent
);
agent_unlock_and_emit
(
agent
);
...
...
agent/stream.c
View file @
28ab0b50
...
@@ -133,10 +133,13 @@ void stream_initialize_credentials (Stream *stream, NiceRNG *rng)
...
@@ -133,10 +133,13 @@ void stream_initialize_credentials (Stream *stream, NiceRNG *rng)
* session.
* session.
*/
*/
void
void
stream_restart
(
Stream
*
stream
,
NiceRNG
*
rng
)
stream_restart
(
NiceAgent
*
agent
,
Stream
*
stream
,
NiceRNG
*
rng
)
{
{
GSList
*
i
;
GSList
*
i
;
/* step: clean up all connectivity checks */
conn_check_prune_stream
(
agent
,
stream
);
stream
->
initial_binding_request_received
=
FALSE
;
stream
->
initial_binding_request_received
=
FALSE
;
stream_initialize_credentials
(
stream
,
rng
);
stream_initialize_credentials
(
stream
,
rng
);
...
...
agent/stream.h
View file @
28ab0b50
...
@@ -93,7 +93,7 @@ void
...
@@ -93,7 +93,7 @@ void
stream_initialize_credentials
(
Stream
*
stream
,
NiceRNG
*
rng
);
stream_initialize_credentials
(
Stream
*
stream
,
NiceRNG
*
rng
);
void
void
stream_restart
(
Stream
*
stream
,
NiceRNG
*
rng
);
stream_restart
(
NiceAgent
*
agent
,
Stream
*
stream
,
NiceRNG
*
rng
);
G_END_DECLS
G_END_DECLS
...
...
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