mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
audio: Bug fix: Reset playing state at the end of the readLoop
This commit is contained in:
parent
d2979e288d
commit
5ecc595ce4
@ -420,6 +420,7 @@ func (p *playerImpl) Play() {
|
||||
func (p *playerImpl) readLoop() {
|
||||
defer func() {
|
||||
p.m.Lock()
|
||||
p.playing = false
|
||||
p.runningReadLoop = false
|
||||
p.m.Unlock()
|
||||
}()
|
||||
|
Loading…
Reference in New Issue
Block a user