diff --git a/dom/media/PeerConnection.js b/dom/media/PeerConnection.js index e8f1c9c8e68e..9977e07b6ec4 100644 --- a/dom/media/PeerConnection.js +++ b/dom/media/PeerConnection.js @@ -1356,6 +1356,7 @@ class RTCPeerConnection { } addTransceiver(sendTrackOrKind, init) { + this._checkClosed(); let transceiver = this._addTransceiverNoEvents(sendTrackOrKind, init); this.updateNegotiationNeeded(); return transceiver;