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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "livekit-client",
3
- "version": "2.4.1",
3
+ "version": "2.4.2",
4
4
  "description": "JavaScript/TypeScript client SDK for LiveKit",
5
5
  "main": "./dist/livekit-client.umd.js",
6
6
  "unpkg": "./dist/livekit-client.umd.js",
package/src/room/Room.ts CHANGED
@@ -520,7 +520,7 @@ class Room extends (EventEmitter as new () => TypedEmitter<RoomEventCallbacks>)
520
520
  return;
521
521
  }
522
522
  }
523
- if (nextUrl) {
523
+ if (nextUrl && !this.abortController?.signal.aborted) {
524
524
  this.log.info(
525
525
  `Initial connection failed with ConnectionError: ${e.message}. Retrying with another region: ${nextUrl}`,
526
526
  this.logContext,