android/internal/readerdriver: Bug fix: Infinite recursive at closeImpl

This commit is contained in:
Hajime Hoshi 2021-05-05 03:58:47 +09:00
parent c954dfa8fb
commit f556590582

View File

@ -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