diff --git a/lib/db.js b/lib/db.js index 43733b02..ea287a5b 100644 --- a/lib/db.js +++ b/lib/db.js @@ -53,7 +53,8 @@ DB.prototype.start = function(callback) { }; DB.prototype.stop = function(callback) { - this.store.close(callback); + // TODO Figure out how to call this.store.close() without issues + setImmediate(callback); }; DB.prototype.getBlock = function(hash, callback) {