fix: 4.1.1

This commit is contained in:
手瓜一十雪 2024-11-16 19:25:54 +08:00
parent 6dc4f38581
commit 55ef7e529e

View File

@ -70,7 +70,7 @@ export class OB11ActiveWebSocketAdapter implements IOB11NetworkAdapter {
}
private async tryConnect() {
if (!this.connection && this.isEnable) {
if (!this.connection && !this.isEnable) {
let isClosedByError = false;
this.connection = new WebSocket(this.config.url, {