wtfutil / wtf

The personal information dashboard for your terminal
http://wtfutil.com
Mozilla Public License 2.0
15.89k stars 805 forks source link

abort handleRedraws goroutine when reading from closed channel #1617

Closed pavhl closed 10 months ago

pavhl commented 1 year ago

Fixed https://github.com/wtfutil/wtf/issues/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 commented 10 months ago

Thank you!