diff --git a/src/cluster.ts b/src/cluster.ts index dd41335..34334a5 100644 --- a/src/cluster.ts +++ b/src/cluster.ts @@ -550,6 +550,9 @@ export class Cluster { }) } } finally { + if (this.keepAliveInterval) { + clearTimeout(this.keepAliveInterval) + } this.keepAliveInterval = setTimeout(() => { void this._keepAlive() }, ms('1m'))