db: Prevent infinite recursion when closing

This commit is contained in:
Daan Sprenkels 2020-04-22 18:25:27 +02:00
parent 728d3833c3
commit e476797da0
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ func (db *Database) Close() error {
if db == nil { if db == nil {
panic("no open database") panic("no open database")
} }
return db.Close() return db.Bolt.Close()
} }
// Initialize and migrate the database to the current version // Initialize and migrate the database to the current version