From 159bf579c84f15e01935aca4064c010ce37fedcf Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 11 Oct 2024 13:28:17 +0800 Subject: [PATCH] bugfix --- bricks/rtc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = {