Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Olivier Crête
libnice
Commits
28ab0b50
Commit
28ab0b50
authored
Apr 15, 2014
by
Olivier Crête
Browse files
stream: Clear connchecks on restart inside stream
parent
0e1c1099
Changes
3
Hide whitespace changes
Inline
Side-by-side
agent/agent.c
View file @
28ab0b50
...
...
@@ -3698,9 +3698,6 @@ nice_agent_restart (
agent_lock
();
/* step: clean up all connectivity checks */
conn_check_free
(
agent
);
/* step: regenerate tie-breaker value */
priv_generate_tie_breaker
(
agent
);
...
...
@@ -3709,7 +3706,7 @@ nice_agent_restart (
/* step: reset local credentials for the stream and
* clean up the list of remote candidates */
stream_restart
(
stream
,
agent
->
rng
);
stream_restart
(
agent
,
stream
,
agent
->
rng
);
}
agent_unlock_and_emit
(
agent
);
...
...
agent/stream.c
View file @
28ab0b50
...
...
@@ -133,10 +133,13 @@ void stream_initialize_credentials (Stream *stream, NiceRNG *rng)
* session.
*/
void
stream_restart
(
Stream
*
stream
,
NiceRNG
*
rng
)
stream_restart
(
NiceAgent
*
agent
,
Stream
*
stream
,
NiceRNG
*
rng
)
{
GSList
*
i
;
/* step: clean up all connectivity checks */
conn_check_prune_stream
(
agent
,
stream
);
stream
->
initial_binding_request_received
=
FALSE
;
stream_initialize_credentials
(
stream
,
rng
);
...
...
agent/stream.h
View file @
28ab0b50
...
...
@@ -93,7 +93,7 @@ void
stream_initialize_credentials
(
Stream
*
stream
,
NiceRNG
*
rng
);
void
stream_restart
(
Stream
*
stream
,
NiceRNG
*
rng
);
stream_restart
(
NiceAgent
*
agent
,
Stream
*
stream
,
NiceRNG
*
rng
);
G_END_DECLS
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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