Skip to content

Commit

Permalink
fix: removed await with createPeerConnection
Browse files Browse the repository at this point in the history
  • Loading branch information
fourhtyoz committed Jan 11, 2025
1 parent 966e4f1 commit 4b70044
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/content/peerconnection/channel/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ function createPeerConnection() {
}

async function makeCall() {
await createPeerConnection();
createPeerConnection();

const offer = await pc.createOffer();
signaling.postMessage({type: 'offer', sdp: offer.sdp});
Expand All @@ -111,7 +111,7 @@ async function handleOffer(offer) {
console.error('existing peerconnection');
return;
}
await createPeerConnection();
createPeerConnection();
await pc.setRemoteDescription(offer);

const answer = await pc.createAnswer();
Expand Down

0 comments on commit 4b70044

Please sign in to comment.