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

Reconnect on connect, set state #854

Merged
merged 2 commits into from
Jan 16, 2024
Merged

Reconnect on connect, set state #854

merged 2 commits into from
Jan 16, 2024

Conversation

scottf
Copy link
Collaborator

@scottf scottf commented Jan 16, 2024

The reconnect loop exits early when status is closed. The first connect sets status to close when it can't connect, so reconnect exited early.
The fix is that before going to reconnect, change the status to disconnected, like it would be if it had been connected then wasn't.

@scottf scottf mentioned this pull request Jan 16, 2024
@scottf scottf requested review from mtmk and removed request for mtmk January 16, 2024 19:58
Copy link
Member

@aricart aricart left a comment

Choose a reason for hiding this comment

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

LGTM

@scottf scottf merged commit 53e876a into main Jan 16, 2024
1 check passed
@scottf scottf deleted the reconnect-on-connect-state branch January 16, 2024 21:01
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