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

Commit fb906ef

Browse files
authored
Merge pull request share#242 from share/close-milestone-database
Close milestone database when calling `Backend.close`
2 parents 76dc6de + c1f58a5 commit fb906ef

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
@@ -114,7 +114,7 @@ Backend.prototype._shimAfterSubmit = function() {
114114
};
115115

116116
Backend.prototype.close = function(callback) {
117-
var wait = 3;
117+
var wait = 4;
118118
var backend = this;
119119
function finish(err) {
120120
if (err) {
@@ -126,6 +126,7 @@ Backend.prototype.close = function(callback) {
126126
}
127127
this.pubsub.close(finish);
128128
this.db.close(finish);
129+
this.milestoneDb.close(finish);
129130
for (var name in this.extraDbs) {
130131
wait++;
131132
this.extraDbs[name].close(finish);

0 commit comments

Comments
 (0)