walletdb: minor.

This commit is contained in:
Christopher Jeffrey 2017-03-10 21:08:58 -08:00
parent 1a8a9afade
commit 2bd578fbe4
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -140,6 +140,9 @@ WalletDB.prototype._init = function _init() {
WalletDB.prototype._open = co(function* open() { WalletDB.prototype._open = co(function* open() {
var wallet; var wallet;
if (this.options.listen)
yield this.logger.open();
yield this.db.open(); yield this.db.open();
yield this.db.checkVersion('V', 6); yield this.db.checkVersion('V', 6);
@ -193,6 +196,9 @@ WalletDB.prototype._close = co(function* close() {
} }
yield this.db.close(); yield this.db.close();
if (this.options.listen)
yield this.logger.close();
}); });
/** /**