From c1f58a5bc80674ad02632668bf6e77de9fc6da67 Mon Sep 17 00:00:00 2001 From: Alec Gibson Date: Thu, 23 Aug 2018 08:32:33 +0100 Subject: [PATCH] Close milestone database when calling `Backend.close` --- lib/backend.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/backend.js b/lib/backend.js index da348ec63..fcee083b4 100644 --- a/lib/backend.js +++ b/lib/backend.js @@ -107,7 +107,7 @@ Backend.prototype._shimAfterSubmit = function() { }; Backend.prototype.close = function(callback) { - var wait = 3; + var wait = 4; var backend = this; function finish(err) { if (err) { @@ -119,6 +119,7 @@ Backend.prototype.close = function(callback) { } this.pubsub.close(finish); this.db.close(finish); + this.milestoneDb.close(finish); for (var name in this.extraDbs) { wait++; this.extraDbs[name].close(finish);