diff --git a/bricks/rtc.js b/bricks/rtc.js index e3c5156..5dff566 100644 --- a/bricks/rtc.js +++ b/bricks/rtc.js @@ -262,7 +262,7 @@ bricks.RTCP2PConnect = class { } async send_offer(peer){ console.log('send_offer(), peers=', this.peers, 'peer=', peer); - pc = this.peers[peer.id].pc; + var pc = this.peers[peer.id].pc; var offer = await pc.createOffer(); await pc.setLocalDescription(offer); var d = {