From 43c0098c70d1db3b35f6606c403b059f64b901c1 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sat, 12 Oct 2024 11:55:00 +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 f30bc48..a1b7b81 100644 --- a/bricks/rtc.js +++ b/bricks/rtc.js @@ -375,7 +375,7 @@ bricks.RTCP2PConnect = class { await this.opts.on_dc_close(dc); } } - createDataChannel(peer){ + async createDataChannel(peer){ 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);