mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-16 04:45:46 +00:00
fix: 清除旧的反向ws
This commit is contained in:
parent
a643fac073
commit
f854c258bd
@ -12,7 +12,7 @@ import { ob11Config } from '@/onebot11/config';
|
||||
import { napCatCore } from '@/core';
|
||||
import { selfInfo } from '@/core/data';
|
||||
|
||||
export const rwsList: ReverseWebsocket[] = [];
|
||||
export let rwsList: ReverseWebsocket[] = [];
|
||||
|
||||
export class ReverseWebsocket {
|
||||
public websocket: WebSocketClass | undefined;
|
||||
@ -133,6 +133,7 @@ class OB11ReverseWebsockets {
|
||||
for (const rws of rwsList) {
|
||||
rws.stop();
|
||||
}
|
||||
rwsList = [];//清空旧的反向ws
|
||||
}
|
||||
|
||||
restart() {
|
||||
|
Loading…
Reference in New Issue
Block a user