From d923b973d29551897c71e07e2f79502e2094f890 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sat, 12 Oct 2024 18:14:02 +0800 Subject: [PATCH] bugfix --- bricks/rtc.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bricks/rtc.js b/bricks/rtc.js index e5114f7..35c486b 100644 --- a/bricks/rtc.js +++ b/bricks/rtc.js @@ -460,8 +460,8 @@ bricks.RTCP2PConnect = class { dc.close(); } pc.close(); - delete self.peers[peer.id]; - var keys = Object.keys(self.peers); + delete this.peers[peer.id]; + var keys = Object.keys(this.peers); if (keys.length == 0){ this.localVideo.get_stream() .getTracks().forEach(track => track.stop());