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 infinite loop when calling close when auto_reconnect is enabled #17

Merged
merged 2 commits into from
Apr 7, 2013

Conversation

Tarang
Copy link
Member

@Tarang Tarang commented Apr 7, 2013

For #16

Found it! When calling close it would attempt to reconnect since
auto_reconnect is set to true by default.

Found it! When calling close it would attempt to reconnect since
`auto_reconnect` is set to true by default.
@tmeasday
Copy link
Member

tmeasday commented Apr 7, 2013

Great stuff @Tarangp , added you to the repo.

Can we rename connectionFailed something more accurate? I don't have a good suggestion

@Tarang
Copy link
Member Author

Tarang commented Apr 7, 2013

I didn't know what to call it either, I used it because essentially they do the same thing. Of course while optimal it makes it harder to understand. Perhaps isClosing?

@tmeasday
Copy link
Member

tmeasday commented Apr 7, 2013

That's fine. Although you probably want to set it to false when they call connect?

@Tarang
Copy link
Member Author

Tarang commented Apr 7, 2013

Yup that should take care of it, so its set to false when connecting until close is called.

tmeasday added a commit that referenced this pull request Apr 7, 2013
Fix infinite loop when calling close when auto_reconnect is enabled
@tmeasday tmeasday merged commit 1547195 into oortcloud:master Apr 7, 2013
@Tarang Tarang mentioned this pull request Apr 8, 2013
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.

None yet

2 participants