walletdb: minor.
This commit is contained in:
parent
1a8a9afade
commit
2bd578fbe4
@ -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();
|
||||
});
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user