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

Fix edgecase race condition between subsequent disconnect and connect calls #538

Merged
merged 1 commit into from
Dec 21, 2022

Conversation

lukasIO
Copy link
Contributor

@lukasIO lukasIO commented Dec 20, 2022

Calling disconnect without awaiting and connect in quick succession could potentially lead to the disconnect call being signalled for the newly established connection in ultra-low latency environments.
Fixed by making sure that potential ongoing disconnect attempts are resolved before trying to connect again.

@changeset-bot
Copy link

changeset-bot bot commented Dec 20, 2022

🦋 Changeset detected

Latest commit: fdaac95

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
livekit-client Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@lukasIO lukasIO changed the title Fix race edgecase between subsequent disconnect and connect calls Fix edgecase race condition between subsequent disconnect and connect calls Dec 20, 2022
@lukasIO lukasIO merged commit c4786ee into main Dec 21, 2022
@lukasIO lukasIO deleted the lukas/disconnect-race branch December 21, 2022 07:35
@github-actions github-actions bot mentioned this pull request Dec 21, 2022
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.

None yet

3 participants