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 #800

Conversation

pschichtel
Copy link
Contributor

This is something I noticed while implementing a rudimentary ICE gathering timeout (see #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.

@jmillan
Copy link
Member

jmillan commented Nov 2, 2023

thanks @pschichtel 👍

@jmillan jmillan merged commit 052332c into versatica:master Nov 2, 2023
lei40251 pushed a commit to lei40251/JsSIP that referenced this pull request Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants