This commit is contained in:
yumoqing 2024-10-12 18:14:02 +08:00
parent 9df6b3c33d
commit d923b973d2

View File

@ -460,8 +460,8 @@ bricks.RTCP2PConnect = class {
dc.close(); dc.close();
} }
pc.close(); pc.close();
delete self.peers[peer.id]; delete this.peers[peer.id];
var keys = Object.keys(self.peers); var keys = Object.keys(this.peers);
if (keys.length == 0){ if (keys.length == 0){
this.localVideo.get_stream() this.localVideo.get_stream()
.getTracks().forEach(track => track.stop()); .getTracks().forEach(track => track.stop());