db: Prevent infinite recursion when closing
This commit is contained in:
1 parent
728d3833c3
commit
e476797da0
1 file changed
+1
-1
+1
-1
@@ -66,7 +66,7 @@ func (db *Database) Close() error {
|
||||
if db == nil {
|
||||
panic("no open database")
|
||||
}
|
||||
return db.Close()
|
||||
return db.Bolt.Close()
|
||||
}
|
||||
|
||||
// Initialize and migrate the database to the current version
|
||||
|
||||
Reference in new issue
Block a user