Skip to content

fix: [FFM-4743]: Prevent connection after close has been called #48

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

Merged
merged 1 commit into from
Oct 17, 2022

Conversation

knagurski
Copy link
Contributor

This PR fixes an issue whereby calling the close method before the stream was opened could cause the SDK to throw an error as eventstream was undefined. With this PR, both a check to ensure eventstream.close is a function before calling it, and checks to make sure the close method wasn't called before opening connections, were added.

@knagurski knagurski self-assigned this Oct 17, 2022
@swarmia
Copy link

swarmia bot commented Oct 17, 2022

@knagurski knagurski merged commit b150564 into main Oct 17, 2022
@knagurski knagurski deleted the FFM-4743-close-triggers-error-when-not-yet-open branch October 17, 2022 15:50
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.

4 participants