зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
71d2d8d004
Коммит
e3f7ef552b
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче