Destroy useless peer connections

This commit is contained in:
Pierre HUBERT 2020-04-11 18:03:18 +02:00
parent 5d7f7fc779
commit 3ec29e534d

View File

@ -206,6 +206,10 @@ class CallWindow extends CustomEvents {
if(this.mainPeer)
this.mainPeer.destroy();
// Destroy peer connections
for(const el of this.peersEls)
el[1].destroy()
if(propagate)
this.emitEvent("close");