mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +01:00
android/internal/readerdriver: Bug fix: Infinite recursive at closeImpl
This commit is contained in:
parent
c954dfa8fb
commit
f556590582
@ -195,7 +195,8 @@ func (p *player) closeImpl() error {
|
||||
return p.err
|
||||
}
|
||||
if err := p.p.Close(); err != nil && p.err == nil {
|
||||
p.setErrorImpl(err)
|
||||
// Do not call setErrorImpl, or this can cause infinite recursive.
|
||||
p.err = err
|
||||
return p.err
|
||||
}
|
||||
p.p = nil
|
||||
|
Loading…
Reference in New Issue
Block a user