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 reconnecting on a closed events handler #164

Merged
merged 1 commit into from
Jun 28, 2024
Merged

Conversation

erickpintor
Copy link
Contributor

I've seen erroneous attempts to reconnect to the stream after calling Close() depending on the state of the connection in some stress tests. This simple guard should prevent this cases.

Copy link
Collaborator

@pnwpedro pnwpedro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@erickpintor erickpintor merged commit 2b71c91 into main Jun 28, 2024
4 checks passed
@erickpintor erickpintor deleted the prevent-reconnect branch June 28, 2024 16:44
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.

2 participants