R-a-dio / valkyrie

R/a/dio software stack
https://r-a-d.io
MIT License
5 stars 3 forks source link

manager, streamer: move streamer connection logic into the streamer #93

Closed Wessie closed 5 months ago

Wessie commented 8 months ago

Currently manager.Manager.UpdateSong does all the logic for determining if the streamer should start streaming, but should be simplified and moved into the streamer instead. Especially with the new streaming API it should be fairly trivial to just setup a goroutine waiting on Manager.CurrentUser updates and have it determine if it should be streaming.