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

Fixed one source of memory leak #156

Merged
merged 2 commits into from
Dec 11, 2019
Merged

Conversation

dtarico-suplari
Copy link
Contributor

When using the Background context, the Done channel is nil

Issue #, if available:
#51

Description of changes:
Don't bother selecting a nil channel because it waits forever and leaks memory.

Issue 51 has a more comprehensive fix suggested by Cyberax, but if not going to integrate that fix or there some hold-up, at least make this trivial fix in the mean time.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link
Contributor

@willarmiros willarmiros left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested by myself and @bhautikpip on sample app. Approved.

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