diff --git a/webrtc/RTCPeerConnection-helper.js b/webrtc/RTCPeerConnection-helper.js index 8ccebbd867f05a..34e0d75903c68d 100644 --- a/webrtc/RTCPeerConnection-helper.js +++ b/webrtc/RTCPeerConnection-helper.js @@ -229,7 +229,7 @@ function exchangeIceCandidates(pc1, pc2) { // There is ongoing discussion on w3c/webrtc-pc#1213 // that there should be an empty candidate string event // for end of candidate for each m= section. - if(candidate) { + if(candidate && remotePc.signalingState !== 'closed') { remotePc.addIceCandidate(candidate); } });