Bug 906986 - Rework fix for Bug 1241690 to avoid reliance on NrIceCtx inside NrIceMediaStream. r=bwc, r=drno

MozReview-Commit-ID: 1QCfbZUGdwM

--HG--
extra : rebase_source : e47546e226839410b65013c66eab53b0212e86fe
This commit is contained in:
Michael Froman 2016-03-31 09:24:17 -05:00
Родитель 04ec3df956
Коммит ac55e03a26
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -306,7 +306,7 @@ nsresult NrIceMediaStream::GetCandidatePairs(std::vector<NrIceCandidatePair>*
} }
// If we haven't at least started checking then there is nothing to report // If we haven't at least started checking then there is nothing to report
if (ctx_->connection_state() == NrIceCtx::ICE_CTX_INIT) { if (ctx_->peer()->state != NR_ICE_PEER_STATE_PAIRED) {
return NS_OK; return NS_OK;
} }
@ -490,7 +490,7 @@ nsresult NrIceMediaStream::GetRemoteCandidates(
} }
// If we haven't at least started checking then there is nothing to report // If we haven't at least started checking then there is nothing to report
if (ctx_->connection_state() == NrIceCtx::ICE_CTX_INIT) { if (ctx_->peer()->state != NR_ICE_PEER_STATE_PAIRED) {
return NS_OK; return NS_OK;
} }