Skip to content

fix: close chan to prevent go routine leak#1

Merged
KeesTucker merged 1 commit into
masterfrom
fix/go-routine-leak
Dec 16, 2024
Merged

fix: close chan to prevent go routine leak#1
KeesTucker merged 1 commit into
masterfrom
fix/go-routine-leak

Conversation

@KeesTucker

Copy link
Copy Markdown

Closes the notify chan on upload completion so that broadcastProgress func can exit, therefore cleaning up the go routine it's running on. Please see this go playground snippet for an example: https://go.dev/play/p/-HP__Mpuxn0

… func can exit, therefore cleaning up the go routine it's running on. Please see this go playground snippet for an example: https://go.dev/play/p/-HP__Mpuxn0
@KeesTucker KeesTucker self-assigned this Dec 16, 2024
@KeesTucker KeesTucker merged commit 987ed38 into master Dec 16, 2024
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.

1 participant