diff --git a/assets/js/components/calls/window.js b/assets/js/components/calls/window.js index 4543fe57..5336fb7f 100644 --- a/assets/js/components/calls/window.js +++ b/assets/js/components/calls/window.js @@ -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");