From 100a8f8fab76662e12dd68e9b08543bc4eccc54e Mon Sep 17 00:00:00 2001 From: Mitchell McCaffrey Date: Thu, 18 Mar 2021 11:34:31 +1100 Subject: [PATCH] Close db on worker put --- src/workers/DatabaseWorker.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/workers/DatabaseWorker.js b/src/workers/DatabaseWorker.js index 044329d..945072c 100644 --- a/src/workers/DatabaseWorker.js +++ b/src/workers/DatabaseWorker.js @@ -61,6 +61,7 @@ let service = { } else { db.table(table).put(decoded); } + db.close(); return true; } catch { return false;