Skip to content

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
Copy link
Owner

@1c3t3a 1c3t3a left a comment

Choose a reason for hiding this comment

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

Sorry for letting you wait so long!

This generally LGTM :) It would just be great if you could add a test for this behavior, so that we notice any regressions in the future. Also please rebase on the latest main, as there is not a merge conflict in one of the files.

Thanks a lot for your contribution and working on this. It is very much appreciated.

@vanics
Copy link

vanics commented Jun 22, 2025

Why this hasn't been merged? Was this fixed?

This seems to be a critical bug.
Is this library being maintained?

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.

3 participants