node: move closed message to handleClose
This commit is contained in:
parent
b18a8a3f13
commit
beb7f8fb1d
@ -252,8 +252,6 @@ class FullNode extends Node {
|
|||||||
await this.mempool.close();
|
await this.mempool.close();
|
||||||
await this.chain.close();
|
await this.chain.close();
|
||||||
|
|
||||||
this.logger.info('Node is closed.');
|
|
||||||
|
|
||||||
await this.handleClose();
|
await this.handleClose();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -210,6 +210,8 @@ class Node extends EventEmitter {
|
|||||||
this.bound.length = 0;
|
this.bound.length = 0;
|
||||||
this.startTime = -1;
|
this.startTime = -1;
|
||||||
|
|
||||||
|
this.logger.info('Node is closed.');
|
||||||
|
|
||||||
await this.workers.close();
|
await this.workers.close();
|
||||||
await this.logger.close();
|
await this.logger.close();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user