Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent repeated ICE finish #1

Closed
wants to merge 1 commit into from

Conversation

pschichtel
Copy link
Member

This is something I noticed while implementing a rudimentary ICE gathering timeout (see versatica#432). As you can see here, I defer the call to IceCandidateEvent.ready by a configurable timeout. If that timeout is elapses after the iceGatheringState changed to completed, then ready will be called twice.

All other calls to the ready function in RTCSession.js are already conditional on the finished variable, I simply pushed that condition into the function.

@pschichtel pschichtel closed this Jan 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant