net: properly clear timers.
This commit is contained in:
parent
a0ac953079
commit
dc5b8c373d
@ -288,6 +288,9 @@ class Pool extends EventEmitter {
|
||||
*/
|
||||
|
||||
async _disconnect() {
|
||||
for (const item of this.invMap.values())
|
||||
item.resolve();
|
||||
|
||||
if (!this.connected)
|
||||
return;
|
||||
|
||||
|
||||
@ -1618,7 +1618,8 @@ describe('Wallet', function() {
|
||||
});
|
||||
}
|
||||
|
||||
it('should cleanup', () => {
|
||||
it('should cleanup', async () => {
|
||||
consensus.COINBASE_MATURITY = 100;
|
||||
// await wdb.close();
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user