jmillerv / go-dj

daemon for automating audio programming
GNU Affero General Public License v3.0
0 stars 0 forks source link

Streams do not stop when content.Stop() is called by stopCountDown #52

Closed jmillerv closed 1 year ago

jmillerv commented 1 year ago

If a podcast is playing and the stopCountDown ticker calls content.Stop. The logic runs, but the podcast continues to play.

My guess is that this is because the stopCountDown is running inside of a go routine and the podcast stream is running inside of a separate routine.

The likely solution is to use channels to allow them to communicate between routines.

jmillerv commented 1 year ago

Replicated this behavior inside of streams and podcasts, which makes sense as they both use go routines to play.