Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Commit 0782309

Browse files
authored
Fix a compatibility issue with old clients. (#584)
Old clients don't have connection Id. Disable perfect negotiation if remote client is not supported.
1 parent 7d754d5 commit 0782309

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sdk/p2p/p2pclient.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ const P2PClient = function(configuration, signalingChannel) {
100100
ErrorModule.errors.P2P_CLIENT_DENIED);
101101
return;
102102
}
103-
if (connectionIds.has(origin) &&
103+
if (connectionIds.has(origin) && connectionId &&
104104
connectionIds.get(origin) !== connectionId && !isPolitePeer(origin)) {
105105
Logger.warning(
106106
// eslint-disable-next-line max-len

0 commit comments

Comments
 (0)