break;
}
}
- if ((stream->ice_mismatch == TRUE) || (stream->rtp_port == 0)) {
+ if (stream->ice_mismatch == TRUE) {
ice_check_list_set_state(cl, ICL_Failed);
+ } else if (stream->rtp_port == 0) {
+ ice_session_remove_check_list(call->ice_session, ice_session_check_list(call->ice_session, i));
} else {
if ((stream->ice_pwd[0] != '\0') && (stream->ice_ufrag[0] != '\0'))
ice_check_list_set_remote_credentials(cl, stream->ice_ufrag, stream->ice_pwd);
for (i = 0; i < md->nstreams; i++) {
IceCheckList *cl = ice_session_check_list(call->ice_session, i);
if (cl && (md->streams[i].rtp_port == 0)) {
- if (ice_check_list_state(cl) != ICL_Completed) ice_check_list_set_state(cl, ICL_Failed);
+ if (ice_check_list_state(cl) != ICL_Completed) {
+ ice_session_remove_check_list(call->ice_session, cl);
+ }
}
}
}