Skip to content

Commit

Permalink
Fix nit
Browse files Browse the repository at this point in the history
  • Loading branch information
soareschen committed Nov 7, 2018
1 parent e2e32a0 commit c48c817
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion webrtc/RTCDtlsTransport-getRemoteCertificates.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
const pc2 = new RTCPeerConnection();
t.add_cleanup(() => pc2.close());

const [track, mediaStream] = await getTrackFromUserMedia('audio')
const [track, mediaStream] = await getTrackFromUserMedia('audio');
addTrackOrTransceiver(pc1, track, mediaStream);
exchangeIceCandidates(pc1, pc2);

Expand Down
4 changes: 3 additions & 1 deletion webrtc/RTCTransport-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
// "connected", "completed" or "closed" state and at least one of them is in the
// "connected" or "completed" state.
async function waitForConnectedState(pc) {
if (pc.connectionState === 'connected') return;
if (pc.connectionState === 'connected') {
return;
}

return new Promise((resolve, reject) => {
pc.addEventListener('connectionstatechange', () => {
Expand Down

0 comments on commit c48c817

Please sign in to comment.