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: Proper handling of authentication error #180

Merged
merged 3 commits into from
Jul 26, 2019

Conversation

jasonsilberman
Copy link
Contributor

Details

This PR moves the socket.io on('error') handler outside of the on('connect') block. This is because if we fail authentication, the error handler is called and not the connect_error.

Now we can properly handle authentication errors instead of just stalling the runner.

@jasonsilberman jasonsilberman marked this pull request as ready for review July 25, 2019 18:04
@jasonsilberman jasonsilberman merged commit 7d6baa9 into master Jul 26, 2019
@jasonsilberman jasonsilberman deleted the jsilberman/fix-hub branch July 26, 2019 00:12
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