keep hanging DLNA player from hanging Supersonic when quitting/switching players
This commit is contained in:
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user