mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-01-15 12:50:33 +00:00
fix: 增强异常处理
This commit is contained in:
parent
556c8b24c0
commit
26cfaac3bd
@ -37,7 +37,13 @@ export class OB11WebSocketClientAdapter extends IOB11NetworkAdapter<WebsocketCli
|
|||||||
}, this.config.heartInterval);
|
}, this.config.heartInterval);
|
||||||
}
|
}
|
||||||
this.isEnable = true;
|
this.isEnable = true;
|
||||||
await this.tryConnect();
|
try {
|
||||||
|
await this.tryConnect();
|
||||||
|
} catch (error) {
|
||||||
|
this.logger.logError('[OneBot] [WebSocket Client] TryConnect Error , info -> ', error);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
close() {
|
close() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user