Skip to content

Commit

Permalink
Merge pull request #294 from ClintHaerinck/bugfix/state-reconnect
Browse files Browse the repository at this point in the history
Connection state updated after reconnect
  • Loading branch information
mathieudutour committed Feb 10, 2020
2 parents 6fe6dd4 + ccf3c8d commit a61b0cf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@ Manager.prototype.open = function (uri, opts, fn) {
self.emit(eventName, e)
})
})
self.on('reconnect', function () {
self._state = STATE.OPEN
})

this.emit('open', this._db)
}
Expand Down

0 comments on commit a61b0cf

Please sign in to comment.