livekit-client 2.4.1 → 2.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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,