From 0b27c8d563eca2becff0cd1ce38a7447fda639af Mon Sep 17 00:00:00 2001 From: lxy Date: Wed, 27 Aug 2025 09:26:33 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4state=E4=B8=BAconnecting?= =?UTF-8?q?=E6=97=B6=E7=9A=84unsub?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/features/socket/subscriber.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/features/socket/subscriber.ts b/src/features/socket/subscriber.ts index 99ab8373..5b03a259 100644 --- a/src/features/socket/subscriber.ts +++ b/src/features/socket/subscriber.ts @@ -258,7 +258,7 @@ export class SubScriber extends Feature event => unset(this.eventMap, event) ); - if (this.socketState === 'connected') { + if (this.socketState === 'connected' || this.socketState === 'connecting') { this.socket!.emit('unsub', events); if (Object.keys(this.eventMap).length === 0) { this.socket!.disconnect();