Skip to content

[client] Set StateDisconnected on Disconnect #184

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

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

Conversation

jaredledvina
Copy link

This PR is a small update so that when the client's Disconnect() function is called, we also set the current state to disconnected. Currently, subsequent connect fail with

return errors.New("client is not disconnected")
as we never transition the state to disconnected.

Signed-off-by: Jared Ledvina <jared@techsmix.net>
jaredledvina added a commit to seabird-chat/seabird-nwwsio-plugin that referenced this pull request Apr 12, 2025
Signed-off-by: Jared Ledvina <jared@techsmix.net>
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