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

Added guard against multiple disconnects #300

Merged
merged 1 commit into from
Jan 11, 2017

Conversation

psahgal
Copy link

@psahgal psahgal commented Jan 4, 2017

I was noticing issues where my app would send multiple disconnect frames. It seemed appropriate for the library to guard against this. (Although there's an argument to be made that avoiding unnecessary calls to disconnect is the responsibility of whomever is using the library...)

I should also note that I was having trouble with running the tests, as stated in issue #297. Let me know if there's any test failures.

@daltoniam Please review.

@daltoniam
Copy link
Owner

Thanks! Seems fair as all the other write methods protect against it.

@daltoniam daltoniam merged commit b22fae4 into daltoniam:master Jan 11, 2017
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