From 2bd578fbe4ccb0c8a62cd69f7a6de779058764b4 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Fri, 10 Mar 2017 21:08:58 -0800 Subject: [PATCH] walletdb: minor. --- lib/wallet/walletdb.js | 6 ++++++ 1 file changed, 6 insertions(+) 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(); }); /**