mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-13 12:32:05 +01:00
audio: Bug fix: Remove redundant Unlock
This commit is contained in:
parent
9fc2ae158c
commit
81549a3523
@ -346,7 +346,6 @@ func (p *playerImpl) Close() error {
|
|||||||
c := p.closedExplicitly
|
c := p.closedExplicitly
|
||||||
p.m.Unlock()
|
p.m.Unlock()
|
||||||
if c {
|
if c {
|
||||||
p.m.Unlock()
|
|
||||||
return fmt.Errorf("audio: the player is already closed")
|
return fmt.Errorf("audio: the player is already closed")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user