NiceAgent *agent)
{
GSList *i;
- gboolean res = TRUE;
agent_lock();
/* step: regenerate tie-breaker value */
priv_generate_tie_breaker (agent);
- for (i = agent->streams; i && res; i = i->next) {
+ for (i = agent->streams; i; i = i->next) {
Stream *stream = i->data;
/* step: reset local credentials for the stream and
* clean up the list of remote candidates */
- res = stream_restart (stream, agent->rng);
+ stream_restart (stream, agent->rng);
}
agent_unlock_and_emit (agent);
- return res;
+ return TRUE;
}
* Resets the component state to that of a ICE restarted
* session.
*/
-gboolean
+void
component_restart (Component *cmp)
{
GSList *i;
cmp->incoming_checks = NULL;
/* note: component state managed by agent */
-
- return TRUE;
}
/*
gboolean
component_find_pair (Component *cmp, NiceAgent *agent, const gchar *lfoundation, const gchar *rfoundation, CandidatePair *pair);
-gboolean
+void
component_restart (Component *cmp);
void
* Resets the stream state to that of a ICE restarted
* session.
*/
-gboolean
+void
stream_restart (Stream *stream, NiceRNG *rng)
{
GSList *i;
- gboolean res = TRUE;
stream->initial_binding_request_received = FALSE;
stream_initialize_credentials (stream, rng);
- for (i = stream->components; i && res; i = i->next) {
+ for (i = stream->components; i; i = i->next) {
Component *component = i->data;
-
- res = component_restart (component);
+
+ component_restart (component);
}
-
- return res;
}
void
stream_initialize_credentials (Stream *stream, NiceRNG *rng);
-gboolean
+void
stream_restart (Stream *stream, NiceRNG *rng);
G_END_DECLS