audio: Bug fix: Remove redundant Unlock

This commit is contained in:
Hajime Hoshi 2019-04-28 02:44:32 +09:00
parent 9fc2ae158c
commit 81549a3523

View File

@ -346,7 +346,6 @@ func (p *playerImpl) Close() error {
c := p.closedExplicitly
p.m.Unlock()
if c {
p.m.Unlock()
return fmt.Errorf("audio: the player is already closed")
}