Bug 950990 - NrIceCtx::ice_completed is fired even on failed contexts, so do not mark such contexts as completed. r=abr

This commit is contained in:
Byron Campen [:bwc] 2013-12-17 11:57:13 -08:00
Родитель 71d2d8d004
Коммит e3f7ef552b
1 изменённых файлов: 4 добавлений и 1 удалений

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

@ -307,7 +307,10 @@ int NrIceCtx::ice_completed(void *obj, nr_ice_peer_ctx *pctx) {
// Get the ICE ctx
NrIceCtx *ctx = static_cast<NrIceCtx *>(obj);
ctx->SetConnectionState(ICE_CTX_OPEN);
// This is called even on failed contexts.
if (ctx->connection_state() != ICE_CTX_FAILED) {
ctx->SetConnectionState(ICE_CTX_OPEN);
}
return 0;
}