From aff481c66ddc1f9a71d5a05f10ad72ea5f48f134 Mon Sep 17 00:00:00 2001 From: bangbang93 Date: Tue, 2 Apr 2024 19:47:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3=E8=A2=AB=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E5=99=A8=E8=B8=B9=E4=B8=8B=E7=BA=BF=E5=90=8E=E9=87=8D?= =?UTF-8?q?=E6=96=B0=E8=BF=9E=E6=8E=A5=EF=BC=8C=E4=BC=9A=E5=BC=80=E5=A7=8B?= =?UTF-8?q?=E5=8F=8C=E5=BF=83=E8=B7=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/cluster.ts | 3 +++ 1 file changed, 3 insertions(+) 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'))