From 2e133e949f9633213b424eded04352c50d149adb Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sat, 12 Oct 2024 11:43:03 +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 5a2e13f..ec6c032 100644 --- a/bricks/rtc.js +++ b/bricks/rtc.js @@ -458,7 +458,7 @@ bricks.RTCP2PConnect = class { dc.close(); } pc.close(); - self.peers = {k:v for k,v in self.peers if k!=peer.id}; + delete self.peers[peer.id]; } });