livekit-client 2.4.1 → 2.4.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -10539,7 +10539,7 @@ function getOSVersion(ua) {
10539
10539
  return ua.includes('mac os') ? getMatch(/\(.+?(\d+_\d+(:?_\d+)?)/, ua, 1).replace(/_/g, '.') : undefined;
10540
10540
  }
10541
10541
 
10542
- var version$1 = "2.4.1";
10542
+ var version$1 = "2.4.2";
10543
10543
 
10544
10544
  const version = version$1;
10545
10545
  const protocolVersion = 13;
@@ -19986,7 +19986,7 @@ class Room extends eventsExports.EventEmitter {
19986
19986
  });
19987
19987
  }
19988
19988
  const connectFn = (resolve, reject, regionUrl) => __awaiter(this, void 0, void 0, function* () {
19989
- var _a;
19989
+ var _a, _b;
19990
19990
  if (this.abortController) {
19991
19991
  this.abortController.abort();
19992
19992
  }
@@ -20011,7 +20011,7 @@ class Room extends eventsExports.EventEmitter {
20011
20011
  return;
20012
20012
  }
20013
20013
  }
20014
- if (nextUrl) {
20014
+ if (nextUrl && !((_b = this.abortController) === null || _b === void 0 ? void 0 : _b.signal.aborted)) {
20015
20015
  this.log.info("Initial connection failed with ConnectionError: ".concat(e.message, ". Retrying with another region: ").concat(nextUrl), this.logContext);
20016
20016
  this.recreateEngine();
20017
20017
  yield connectFn(resolve, reject, nextUrl);