Skip to content

abort handleRedraws goroutine when reading from closed channel #1617

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

Merged
merged 1 commit into from
Jan 18, 2024

Conversation

pavhl
Copy link
Contributor

@pavhl pavhl commented Oct 26, 2023

Fixed #1478

The goroutine is expected to be stopped by closing the channel (see wtfApp.Stop()). But as the channel receive is not checked the handleRedraws goroutine turns into an indefinite loop.

@senorprogrammer senorprogrammer merged commit 14684d3 into wtfutil:master Jan 18, 2024
@senorprogrammer
Copy link
Collaborator

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

CPU usage increases by 100% on every save of config file
2 participants