Commit 4e611444 authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Set the ICE session to the Running state when adding a new check list.

parent 9304d7b4
...@@ -592,6 +592,9 @@ void ice_session_add_check_list(IceSession *session, IceCheckList *cl) ...@@ -592,6 +592,9 @@ void ice_session_add_check_list(IceSession *session, IceCheckList *cl)
{ {
session->streams = ms_list_append(session->streams, cl); session->streams = ms_list_append(session->streams, cl);
cl->session = session; cl->session = session;
if (cl->state == ICL_Running) {
session->state = IS_Running;
}
} }
static int ice_find_default_candidate_from_componentID(const IceCandidate *candidate, const uint16_t *componentID) static int ice_find_default_candidate_from_componentID(const IceCandidate *candidate, const uint16_t *componentID)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment