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]; } });