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 ENABLE_SOCKET not properly done its job #1117

Merged
merged 1 commit into from
May 26, 2022

Conversation

idinium96
Copy link
Member

@idinium96 idinium96 commented May 26, 2022

Credit @EliteOneTube:
image

The error in question which crashes the bot was: WebSocket was closed before the connection was established, which should be fixed on the 1f66f50 commit.

Before this commit, the bot still initialize the socketManager, and added the error eventListener, which then if enableSocket is set to false, the shutDown is called, but ws don't have removeAllEventListener method, so that the error event never get deleted, thus when error event is emitted, the bot tries to reconnect while the websocket is in the CONNECTING state which results in crashing the bot despite having the enableSocket option disabled.

@idinium96 idinium96 merged commit 1dcbb42 into development May 26, 2022
@idinium96 idinium96 mentioned this pull request May 26, 2022
@idinium96 idinium96 deleted the fix-enableSocket branch May 30, 2022 16:32
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