mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-11-04 04:04:20 +00:00 
			
		
		
		
	Destroy useless peer connections
This commit is contained in:
		@@ -206,6 +206,10 @@ class CallWindow extends CustomEvents {
 | 
				
			|||||||
		
 | 
							
 | 
				
			||||||
		if(this.mainPeer)
 | 
							if(this.mainPeer)
 | 
				
			||||||
			this.mainPeer.destroy();
 | 
								this.mainPeer.destroy();
 | 
				
			||||||
 | 
							
 | 
				
			||||||
 | 
							// Destroy peer connections
 | 
				
			||||||
 | 
							for(const el of this.peersEls)
 | 
				
			||||||
 | 
								el[1].destroy()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if(propagate)
 | 
							if(propagate)
 | 
				
			||||||
			this.emitEvent("close");
 | 
								this.emitEvent("close");
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user