diff --git a/public/webrtc.js b/public/webrtc.js index 7dc467c..29f8c6d 100755 --- a/public/webrtc.js +++ b/public/webrtc.js @@ -127,17 +127,6 @@ class RTC { this.streams[stream.id] = new Remote(stream.id, stream); }); }; - this.conn.oniceconnectionstatechange = (event) => { - switch (this.conn.iceConnectionState) { - case "disconnected": - case "failed": - case "closed": - for (var k in this.streams) { - this.streams[k].destructor(); - delete this.streams[k]; - } - } - }; this.conn.addStream(stream); }