From 9df2c75cd07378894314a668344340196106a9a3 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sat, 12 Oct 2024 11:57:27 +0800 Subject: [PATCH] bugfix --- bricks/rtc.js | 1 + 1 file changed, 1 insertion(+) diff --git a/bricks/rtc.js b/bricks/rtc.js index a1b7b81..7e39944 100644 --- a/bricks/rtc.js +++ b/bricks/rtc.js @@ -376,6 +376,7 @@ bricks.RTCP2PConnect = class { } } async createDataChannel(peer){ + var pc = this.peers[peer.id].pc; this.peers[peer.id].dc = pc.createDataChannel('chat', {ordered:true}); var dc = this.peers[peer.id].dc; await this.dc_created(peer, this.peers[peer.id].dc);