audio: Bug fix: Reset playing state at the end of the readLoop

This commit is contained in:
Hajime Hoshi 2019-04-29 22:31:10 +09:00
parent d2979e288d
commit 5ecc595ce4

View File

@ -420,6 +420,7 @@ func (p *playerImpl) Play() {
func (p *playerImpl) readLoop() { func (p *playerImpl) readLoop() {
defer func() { defer func() {
p.m.Lock() p.m.Lock()
p.playing = false
p.runningReadLoop = false p.runningReadLoop = false
p.m.Unlock() p.m.Unlock()
}() }()