Bug 1466175: Check if TransceiverImpl has been shut down in SyncWithJS. r=mjf

MozReview-Commit-ID: 9FaUEKdr9jn

--HG--
extra : rebase_source : c6a4e75b75835637288b765f1f45da1a88597d0d
This commit is contained in:
Byron Campen [:bwc] 2018-06-05 12:33:47 -05:00
parent c44baa0cf5
commit 39ab428ca2

View File

@ -363,6 +363,12 @@ TransceiverImpl::SyncWithJS(dom::RTCRtpTransceiver& aJsTransceiver,
MOZ_MTLOG(ML_DEBUG, mPCHandle << "[" << mMid << "]: " << __FUNCTION__
<< " Syncing with JS transceiver");
if (!mTransmitPipeline) {
// Shutdown_m has already been called, probably due to pc.close(). Just
// nod and smile.
return;
}
// Update stopped, both ways, since either JSEP or JS can stop these
if (mJsepTransceiver->IsStopped()) {
// We don't call RTCRtpTransceiver::Stop(), because that causes another sync