From d83f02471eafe06d632d3545bb38870d6f41f34f Mon Sep 17 00:00:00 2001 From: idranme <96647698+idranme@users.noreply.github.com> Date: Thu, 18 Jul 2024 09:01:35 +0000 Subject: [PATCH] fix(qq): resume --- adapters/qq/src/ws.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/adapters/qq/src/ws.ts b/adapters/qq/src/ws.ts index 8ef56cb7..58370920 100644 --- a/adapters/qq/src/ws.ts +++ b/adapters/qq/src/ws.ts @@ -55,10 +55,8 @@ export class WsClient extends Adapter.WsClient extends Adapter.WsClient { this.bot.logger.debug('websocket closed, code %o, reason: %s', e.code, e.reason) + if (e.code > 4000 && ![4008, 4009].includes(e.code)) { + this._sessionId = '' + this._s = null + } clearInterval(this._ping) }) }