Skip to content

Commit

Permalink
fix: The removeIdleTimeoutConnectionsTimer did not clean up when the …
Browse files Browse the repository at this point in the history
…pool was closed.
  • Loading branch information
foxling committed Jan 18, 2024
1 parent 5c1b356 commit 70d6447
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/pool.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ class Pool extends EventEmitter {

end(cb) {
this._closed = true;
clearTimeout(this._removeIdleTimeoutConnectionsTimer);
if (typeof cb !== 'function') {
cb = function(err) {
if (err) {
Expand Down

0 comments on commit 70d6447

Please sign in to comment.