walletdb: fix destroying.

This commit is contained in:
Christopher Jeffrey 2016-10-04 05:39:35 -07:00
parent a41d27e828
commit 2c066ddce1
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -232,7 +232,6 @@ WalletDB.prototype._close = co(function* close() {
key = keys[i];
wallet = this.wallets[key];
yield wallet.destroy();
delete this.wallets[key];
}
yield this.db.close();