Skip to content

Conversation

@danxuliu
Copy link
Member

Follow up to #3839

The event listeners where not properly stopped when a Peer was set, so if the same Peer was set twice the listeners were duplicated, which in turn could lead to errors due to only one of them being removed.

How to test

  • Setup the HPB
  • Start call
  • Leave call
  • Start call
  • Leave call
  • Start call

Result with this pull request

The call is started.

Result without this pull request

The call is not started. Browser console shows an error about calling setAnalysisEnabledAudio on a null object.

The event listeners where not properly stopped when a Peer was set, so
if the same Peer was set twice the listeners were duplicated, which in
turn could lead to errors due to only one of them being removed.

Signed-off-by: Daniel Calviño Sánchez <[email protected]>
@danxuliu
Copy link
Member Author

/backport to stable19

@nickvergessen nickvergessen merged commit 48712fd into master Jul 16, 2020
@nickvergessen nickvergessen deleted the fix-duplicated-event-listeners-in-participantanalyzer branch July 16, 2020 13:13
@danxuliu
Copy link
Member Author

/backport to stable19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants