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: race during disconnect error #14

Merged
merged 1 commit into from
Aug 12, 2022
Merged

fix: race during disconnect error #14

merged 1 commit into from
Aug 12, 2022

Conversation

bdraco
Copy link
Member

@bdraco bdraco commented Aug 12, 2022

Sometimes we can't reconnect again because the callback didn't get a chance to run because control was never returned to the event loop. We need to sleep 0 before reconnecting to ensure its run

@bdraco bdraco merged commit dccbbb1 into main Aug 12, 2022
@bdraco bdraco deleted the fix_disconnect_race branch August 12, 2022 09:25
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