@livedigital/client 3.35.0-createCustomMediaTracks.2 → 3.35.0

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
@@ -2,7 +2,7 @@
2
2
  "name": "@livedigital/client",
3
3
  "author": "vlprojects",
4
4
  "license": "MIT",
5
- "version": "3.35.0-createCustomMediaTracks.2",
5
+ "version": "3.35.0",
6
6
  "private": false,
7
7
  "bugs": {
8
8
  "url": "https://github.com/vlprojects/livedigital-sdk/issues"
@@ -183,6 +183,7 @@ class Engine {
183
183
 
184
184
  try {
185
185
  this.state.isJoined = false;
186
+ this.network.peersLoaded = false;
186
187
  this.state.reset();
187
188
  this.myPeer.delete();
188
189
  this.webRtcIssueDetector?.stopWatchingNewPeerConnections();
@@ -778,6 +779,13 @@ class Engine {
778
779
  let continiousNumberOfLoadbalancerSuccessufulChecks = 0;
779
780
 
780
781
  const checkInterval = setInterval(async () => {
782
+ if (this.isReleasing || !this.state.isJoined) {
783
+ clearInterval(checkInterval);
784
+ this.#logger.info('Stop waiting for seamless reconnect due to call end', {
785
+ case: 'waitForReconnectOrTriggerRejoinEventIfAppropriate',
786
+ });
787
+ return;
788
+ }
781
789
  try {
782
790
  if (!this.#isConnectionLost) {
783
791
  // connection restored