Bug 1256720: Remove a bad assertion, and simplify some code. r=drno

MozReview-Commit-ID: 3h52q8Wrp8R

--HG--
extra : rebase_source : a1cf4d7fa29e4ed7bb6a1f5be19d1b2af2ef5316
This commit is contained in:
Byron Campen [:bwc] 2016-03-24 15:05:53 -05:00
Родитель 8cd3125d35
Коммит 03253b8221
1 изменённых файлов: 3 добавлений и 12 удалений

Просмотреть файл

@ -319,19 +319,10 @@ static void nr_ice_media_stream_check_timer_cb(NR_SOCKET s, int h, void *cb_arg)
int r,_status;
nr_ice_media_stream *stream=cb_arg;
nr_ice_cand_pair *pair = 0;
int timer_val;
int timer_multiplier;
int timer_multiplier=stream->pctx->active_streams ? stream->pctx->active_streams : 1;
int timer_val=stream->pctx->ctx->Ta*timer_multiplier;
timer_multiplier=stream->pctx->active_streams;
/* Once the checks are completed we don't have an active streams any more,
* but we still need to process triggered checks. */
if (stream->ice_state == NR_ICE_MEDIA_STREAM_CHECKS_COMPLETED) {
assert(timer_multiplier==0);
timer_multiplier=1;
}
assert(timer_multiplier!=0);
timer_val=stream->pctx->ctx->Ta*timer_multiplier;
assert(timer_val>0);
r_log(LOG_ICE,LOG_DEBUG,"ICE-PEER(%s): check timer expired for media stream %s",stream->pctx->label,stream->label);
stream->timer=0;