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

Check if self is nil in infinite while loop. #448

Closed
wants to merge 1 commit into from

Conversation

mbesnili
Copy link

Move duplicated errorWithDetail method to ErrorHandle struct.

Our ios application uses socket in a way that it closes the connection when the application will resign active and establish the new connection when application did become active. That means we're extensively close and open connection while monkey testing (pressing home button causes to resign active and become active). This patch creates a short circuit to infinite while loop if web socket stream was nil-ed. More importantly, this prevents new socket connection to being connected somehow.

@mbesnili
Copy link
Author

@daltoniam could you please review this pr ?

@daltoniam
Copy link
Owner

Thanks! I had another branch going with some other fixes so I just pulled this code into version 3.0.4 which I just released! Thanks again.

@daltoniam daltoniam closed this Jan 14, 2018
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.

3 participants