From 7e5e360f7ae155a60cd51504b6994166ec873c75 Mon Sep 17 00:00:00 2001 From: ajee cai Date: Sun, 26 Jan 2020 14:11:09 +0800 Subject: [PATCH] Fix bug that Close recursively calling itself then stack overflows --- leveldbstore/store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/leveldbstore/store.go b/leveldbstore/store.go index 2c27fc8..fccb2a0 100644 --- a/leveldbstore/store.go +++ b/leveldbstore/store.go @@ -37,5 +37,5 @@ func (s *LeveldbStore) Delete(fingerprint string) { } func (s *LeveldbStore) Close() { - s.Close() + s.db.Close() }