Fix panic on double Close of sqlite piece completion DB
This commit is contained in:
parent
cce8c150c2
commit
23029571ec
|
@ -64,6 +64,7 @@ func (me *sqlitePieceCompletion) Close() (err error) {
|
|||
defer me.mu.Unlock()
|
||||
if me.db != nil {
|
||||
err = me.db.Close()
|
||||
me.db = nil
|
||||
}
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue