Remove the other listeners
This commit is contained in:
		
					parent
					
						
							
								2435846f66
							
						
					
				
			
			
				commit
				
					
						b061cbfb2f
					
				
			
		
					 1 changed files with 16 additions and 0 deletions
				
			
		| 
						 | 
					@ -41,10 +41,26 @@ export class OTelCall {
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  public dispose() {
 | 
					  public dispose() {
 | 
				
			||||||
 | 
					    this.call.peerConn.removeEventListener(
 | 
				
			||||||
 | 
					      "connectionstatechange",
 | 
				
			||||||
 | 
					      this.onCallConnectionStateChanged
 | 
				
			||||||
 | 
					    );
 | 
				
			||||||
 | 
					    this.call.peerConn.removeEventListener(
 | 
				
			||||||
 | 
					      "signalingstatechange",
 | 
				
			||||||
 | 
					      this.onCallSignalingStateChanged
 | 
				
			||||||
 | 
					    );
 | 
				
			||||||
    this.call.peerConn.removeEventListener(
 | 
					    this.call.peerConn.removeEventListener(
 | 
				
			||||||
      "iceconnectionstatechange",
 | 
					      "iceconnectionstatechange",
 | 
				
			||||||
      this.onIceConnectionStateChanged
 | 
					      this.onIceConnectionStateChanged
 | 
				
			||||||
    );
 | 
					    );
 | 
				
			||||||
 | 
					    this.call.peerConn.removeEventListener(
 | 
				
			||||||
 | 
					      "icegatheringstatechange",
 | 
				
			||||||
 | 
					      this.onIceGatheringStateChanged
 | 
				
			||||||
 | 
					    );
 | 
				
			||||||
 | 
					    this.call.peerConn.removeEventListener(
 | 
				
			||||||
 | 
					      "icecandidateerror",
 | 
				
			||||||
 | 
					      this.onIceCandidateError
 | 
				
			||||||
 | 
					    );
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  private addCallPeerConnListeners = (): void => {
 | 
					  private addCallPeerConnListeners = (): void => {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue