From 6f10e760cf777f7118861d48f3f9756c0358e445 Mon Sep 17 00:00:00 2001 From: shy <70299052+shy1132@users.noreply.github.com> Date: Sat, 27 Jul 2024 21:32:06 -0500 Subject: [PATCH 1/2] fix: check if unref exists before calling --- src/Client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Client.ts b/src/Client.ts index e30a109..1df5be8 100644 --- a/src/Client.ts +++ b/src/Client.ts @@ -350,7 +350,7 @@ export class Client extends (EventEmitter as new () => TypedEventEmitter { this.connectionPromise = undefined; From e60d41c5ac308d50464337932fef48abe0f15dd6 Mon Sep 17 00:00:00 2001 From: xhayper Date: Mon, 29 Jul 2024 13:58:01 +0700 Subject: [PATCH 2/2] feat: use `'unref' in` instead --- src/Client.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Client.ts b/src/Client.ts index 1df5be8..eec01f5 100644 --- a/src/Client.ts +++ b/src/Client.ts @@ -350,7 +350,8 @@ export class Client extends (EventEmitter as new () => TypedEventEmitter { this.connectionPromise = undefined;