summaryrefslogtreecommitdiff
path: root/bucky/search/bdb.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2017-12-12 03:52:14 +0100
committerJules Laplace <julescarbon@gmail.com>2017-12-12 03:52:14 +0100
commitd4ece4ab1f461653c53bb56f23406c553ea78dd3 (patch)
tree6d86bcc41f08519b7478c5c1d5963b634047958e /bucky/search/bdb.js
parent942a72123ecf7ed91cf3cba1124adc11a3615208 (diff)
deleting threads with comments and files and s3 files
Diffstat (limited to 'bucky/search/bdb.js')
-rw-r--r--bucky/search/bdb.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/bucky/search/bdb.js b/bucky/search/bdb.js
index a7ced4a..6f1fd98 100644
--- a/bucky/search/bdb.js
+++ b/bucky/search/bdb.js
@@ -11,7 +11,7 @@ function db(fn){
fn = "./" + fn + ".db"
function exitHandler(options, err) {
- db.close()
+ if (db) db.close()
// if (options.cleanup) console.log('clean');
if (err) console.log(err.stack);
if (options.exit) process.exit();