Skip to content

Commit

Permalink
fix: removing all listeners for pool and httpserver (#1668)
Browse files Browse the repository at this point in the history
  • Loading branch information
rsercano committed Nov 5, 2020
1 parent 8d10df0 commit 792a7e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/p2p/Pool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1041,6 +1041,7 @@ class Pool extends EventEmitter {
return new Promise<void>((resolve) => {
if (this.server) {
this.server.once('close', resolve);
this.server.removeAllListeners();
} else {
resolve();
}
Expand Down

0 comments on commit 792a7e3

Please sign in to comment.