keep hanging DLNA player from hanging Supersonic when quitting/switching players

This commit is contained in:
Drew Weymouth
2025-03-30 13:51:50 -07:00
parent 2701bb3f7f
commit 9001dc296f
7 changed files with 102 additions and 27 deletions
+6
View File
@@ -61,6 +61,12 @@ func (c *playbackCommandQueue) C() <-chan playbackCommand {
return c.nextChan
}
func (c *playbackCommandQueue) Clear() {
c.mutex.Lock()
c.queue = nil
c.mutex.Unlock()
}
func (c *playbackCommandQueue) Stop() {
c.filterCommandsAndAdd([]playbackCommandType{cmdContinue, cmdPause, cmdStop},
playbackCommand{Type: cmdStop})