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: goroutine leak #79

Merged
merged 2 commits into from Oct 26, 2022
Merged

fix: goroutine leak #79

merged 2 commits into from Oct 26, 2022

Conversation

caarlos0
Copy link
Member

@caarlos0 caarlos0 commented Oct 24, 2022

we never really break out of that for loop, so, the goroutine would keep running there even long after the program that launched it finished.

this fixes it.

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
@caarlos0 caarlos0 self-assigned this Oct 24, 2022
@caarlos0 caarlos0 added the bug Something isn't working label Oct 24, 2022
@caarlos0 caarlos0 marked this pull request as ready for review October 24, 2022 18:55
Copy link
Member

@aymanbagabas aymanbagabas left a comment

Choose a reason for hiding this comment

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

Another one could be added here

@caarlos0
Copy link
Member Author

not sure @aymanbagabas, in theory, the context ends either way, will try to test it later to make sure...

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
@caarlos0
Copy link
Member Author

@aymanbagabas it does not even need to be in a channel tbh, changed it

@caarlos0 caarlos0 merged commit 9a56088 into main Oct 26, 2022
@caarlos0 caarlos0 deleted the leak branch October 26, 2022 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants