Skip to content

Commit

Permalink
Make sure we send the right peer connection when removing event liste…
Browse files Browse the repository at this point in the history
…ners
  • Loading branch information
onel committed May 4, 2022
1 parent 209deea commit 4de8fa4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -802,6 +802,7 @@ export class WebRTCStats extends EventEmitter {
for (let pId in this.peersToMonitor) {
if (connectionId in this.peersToMonitor[pId]) {
peerId = pId
pc = this.peersToMonitor[pId][connectionId].pc

// remove listeners
this.removePeerConnectionEventListeners(peerId, connectionId, pc)
Expand Down

0 comments on commit 4de8fa4

Please sign in to comment.