Open tramhao opened 3 years ago
Probably the problem is playingbar running for each song and didn't finish.
I suspect playingbar is the problem. Try disable the playingbar, to see if the problem persists.
Yes, after comment out the content inside playingbar.go:run(), everything seems fine. Probably something wrong inside here.
I think I found the reason. playingbar.skip is never set to true, so the for loop is not ended. When playing, it's not a problem because for loop can be stopped.
Fixed it for now. But I still have too many doubts about this run function.
I met a problem for both beep and mpd: When open the app, the cup usage for gomu in gotop for mpd is about 2%, and beep is about 20%. After pressing N for like 10 seconds or more (skip), the cup usage for mpd is 40% and beep is 50%, and they don't drop back.
I think it's probably related to the go routine for play. I mean, the player.Run is in go routing, and it never returns, but it will spawn another go routine for next song.
What do you think?