diff --git a/src/utils/bidaraDB.js b/src/utils/bidaraDB.js index 252e4cb..ba5eb40 100644 --- a/src/utils/bidaraDB.js +++ b/src/utils/bidaraDB.js @@ -86,6 +86,8 @@ function BidaraDB() { return BIDARA_DB; }, close: async () => { + if (!BIDARA_DB) return; + await dbUtils.closeDB(BIDARA_DB); BIDARA_DB = null; }