mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 05:15:45 +00:00
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:
parent
c44baa0cf5
commit
39ab428ca2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user