From ec5fc4fabd77ba3d12718ca96f50c4c1e9d51cee Mon Sep 17 00:00:00 2001 From: Dave C-J Date: Fri, 27 Sep 2013 17:33:55 +0100 Subject: [PATCH] levelDB - oops forgot to close database on close... non fatal but lots of messages ... fixed --- nodes/storage/67-leveldb.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nodes/storage/67-leveldb.js b/nodes/storage/67-leveldb.js index d78baea17..050d456be 100644 --- a/nodes/storage/67-leveldb.js +++ b/nodes/storage/67-leveldb.js @@ -27,6 +27,9 @@ function LevelNode(n) { }); } RED.nodes.registerType("leveldbase",LevelNode); +LevelNode.prototype.close = function() { + this.db.close(); +} function LevelDBNodeIn(n) { RED.nodes.createNode(this,n);