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) }) }