node: move closed message to handleClose

This commit is contained in:
Javed Khan 2018-07-04 18:37:36 +05:30
parent b18a8a3f13
commit beb7f8fb1d
No known key found for this signature in database
GPG Key ID: 7E31745B904584E6
2 changed files with 2 additions and 2 deletions

View File

@ -252,8 +252,6 @@ class FullNode extends Node {
await this.mempool.close();
await this.chain.close();
this.logger.info('Node is closed.');
await this.handleClose();
}

View File

@ -210,6 +210,8 @@ class Node extends EventEmitter {
this.bound.length = 0;
this.startTime = -1;
this.logger.info('Node is closed.');
await this.workers.close();
await this.logger.close();
}