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: manual disconnect not preventing reconnection #466

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

SenseiHiraku
Copy link

@SenseiHiraku SenseiHiraku commented Sep 23, 2024

This pull request fixes the issue where calling disconnect() on the client does not prevent the client from automatically reconnecting, as mentioned in #374

I noticed that the asynchronous client behaves differently since the DisconnectReason enum was introduced via #400. I have reimplemented this functionality for the synchronous client. During the process, I encountered issues such as "invoking disconnect after the client lost connection to the server still tries to reconnect," but I have fixed and tested every edge case I could think of, and all should be properly handled now.

@SenseiHiraku SenseiHiraku changed the title fix: manual disconnect not preventing reconnection (#374) fix: manual disconnect not preventing reconnection Sep 23, 2024
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