diff --git a/lib/wallet/walletdb.js b/lib/wallet/walletdb.js index c916de98..edf83db8 100644 --- a/lib/wallet/walletdb.js +++ b/lib/wallet/walletdb.js @@ -140,6 +140,9 @@ WalletDB.prototype._init = function _init() { WalletDB.prototype._open = co(function* open() { var wallet; + if (this.options.listen) + yield this.logger.open(); + yield this.db.open(); yield this.db.checkVersion('V', 6); @@ -193,6 +196,9 @@ WalletDB.prototype._close = co(function* close() { } yield this.db.close(); + + if (this.options.listen) + yield this.logger.close(); }); /**