diff options
Diffstat (limited to 'tests/wpt/web-platform-tests/webrtc/RTCPeerConnection-helper.js')
-rw-r--r-- | tests/wpt/web-platform-tests/webrtc/RTCPeerConnection-helper.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/wpt/web-platform-tests/webrtc/RTCPeerConnection-helper.js b/tests/wpt/web-platform-tests/webrtc/RTCPeerConnection-helper.js index 8ccebbd867f..34e0d75903c 100644 --- a/tests/wpt/web-platform-tests/webrtc/RTCPeerConnection-helper.js +++ b/tests/wpt/web-platform-tests/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); } }); |