Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Fix a case of endless recursion

Lyubomir Marinov91487ffc9443
diff --git a/react/features/base/react/RouteRegistry.js b/react/features/base/react/RouteRegistry.js
index f4e6d0939b..86403af97f 100644
--- a/react/features/base/react/RouteRegistry.js
+++ b/react/features/base/react/RouteRegistry.js
@@ -43,9 +43,12 @@ class RouteRegistry {
return !a;
}
+ const aKeys = Object.keys(a);
+ const bKeys = Object.keys(b);
+
return (
- Object.keys(a).every(key => a[key] === b[key])
- && /* symmetric */ this.areRoutesEqual(b, a));
+ aKeys.length === bKeys.length /* symmetric */
+ && aKeys.every(key => a[key] === b[key]));
}
/**