fix: 增强异常处理

This commit is contained in:
手瓜一十雪
2025-03-29 10:50:27 +08:00
parent 556c8b24c0
commit 26cfaac3bd

View File

@@ -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() {