Fix panic on double Close of sqlite piece completion DB

This commit is contained in:
Matt Joiner 2021-09-01 15:25:46 +10:00
parent cce8c150c2
commit 23029571ec
1 changed files with 1 additions and 0 deletions

View File

@ -64,6 +64,7 @@ func (me *sqlitePieceCompletion) Close() (err error) {
defer me.mu.Unlock() defer me.mu.Unlock()
if me.db != nil { if me.db != nil {
err = me.db.Close() err = me.db.Close()
me.db = nil
} }
return return
} }