From e476797da012ad277719c06bb36d00625275adb5 Mon Sep 17 00:00:00 2001 From: Daan Sprenkels Date: Wed, 22 Apr 2020 18:25:27 +0200 Subject: [PATCH] db: Prevent infinite recursion when closing --- internal/db/db.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/db/db.go b/internal/db/db.go index 72d216d..682663c 100644 --- a/internal/db/db.go +++ b/internal/db/db.go @@ -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