Skip to content
This repository was archived by the owner on Apr 2, 2024. It is now read-only.

Commit c1f58a5

Browse files
author
Alec Gibson
committed
Close milestone database when calling Backend.close
1 parent 0249c91 commit c1f58a5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/backend.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ Backend.prototype._shimAfterSubmit = function() {
107107
};
108108

109109
Backend.prototype.close = function(callback) {
110-
var wait = 3;
110+
var wait = 4;
111111
var backend = this;
112112
function finish(err) {
113113
if (err) {
@@ -119,6 +119,7 @@ Backend.prototype.close = function(callback) {
119119
}
120120
this.pubsub.close(finish);
121121
this.db.close(finish);
122+
this.milestoneDb.close(finish);
122123
for (var name in this.extraDbs) {
123124
wait++;
124125
this.extraDbs[name].close(finish);

0 commit comments

Comments
 (0)