@livedigital/client 3.34.1 → 3.34.3

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.34.1",
5
+ "version": "3.34.3",
6
6
  "private": false,
7
7
  "bugs": {
8
8
  "url": "https://github.com/vlprojects/livedigital-sdk/issues"
@@ -181,6 +181,7 @@ class Engine {
181
181
 
182
182
  try {
183
183
  this.state.isJoined = false;
184
+ this.network.peersLoaded = false;
184
185
  this.state.reset();
185
186
  this.myPeer.delete();
186
187
  this.webRtcIssueDetector?.stopWatchingNewPeerConnections();
@@ -697,6 +698,13 @@ class Engine {
697
698
  let continiousNumberOfLoadbalancerSuccessufulChecks = 0;
698
699
 
699
700
  const checkInterval = setInterval(async () => {
701
+ if (this.isReleasing || !this.state.isJoined) {
702
+ clearInterval(checkInterval);
703
+ this.#logger.info('Stop waiting for seamless reconnect due to call end', {
704
+ case: 'waitForReconnectOrTriggerRejoinEventIfAppropriate',
705
+ });
706
+ return;
707
+ }
700
708
  try {
701
709
  if (!this.#isConnectionLost) {
702
710
  // connection restored
@@ -72,8 +72,8 @@ export function isAnalyticsActive(flag?: boolean): boolean {
72
72
  return flag ?? true;
73
73
  }
74
74
 
75
- export function randomString(length = 10) {
76
- return crypto.randomBytes(length).toString('hex');
75
+ export function randomString() {
76
+ return crypto.randomBytes(10).toString('hex');
77
77
  }
78
78
 
79
79
  export function markSDKInstance(mark: string) {