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: close all pool channels first when closing pool to prevent data continuously sent to them #26

Merged
merged 1 commit into from
Nov 30, 2022

Conversation

DNK90
Copy link
Contributor

@DNK90 DNK90 commented Nov 30, 2022

When closing pool, if we close channels after the loop, it could lead to infinite loop when channels are continuously received data. Therefore, it is necessary to close them before further processes

@DNK90 DNK90 requested review from minh-bq and linh-1 November 30, 2022 08:43
@DNK90 DNK90 merged commit fd323d5 into master Nov 30, 2022
@minh-bq minh-bq deleted the fix/close_channel_firstly_when_closing branch November 30, 2022 08:55
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.

2 participants