Bug 1441192: Clear ICE operations queue in PeerConnectionMedia::SelfDestruct. r?drno
MozReview-Commit-ID: DNdq23SW0db
--- a/media/webrtc/signaling/src/peerconnection/PeerConnectionMedia.cpp
+++ b/media/webrtc/signaling/src/peerconnection/PeerConnectionMedia.cpp
@@ -1065,16 +1065,18 @@ PeerConnectionMedia::SelfDestruct()
for (auto& transceiver : mTransceivers) {
// transceivers are garbage-collected, so we need to poke them to perform
// cleanup right now so the appropriate events fire.
transceiver->Shutdown_m();
}
mTransceivers.clear();
+ mQueuedIceCtxOperations.clear();
+
// Shutdown the transport (async)
RUN_ON_THREAD(mSTSThread, WrapRunnable(
this, &PeerConnectionMedia::ShutdownMediaTransport_s),
NS_DISPATCH_NORMAL);
CSFLogDebug(LOGTAG, "%s: Media shut down", __FUNCTION__);
}