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

Commit ca2faec

Browse files
authored
Fix single pc client failure after 721 merged (#733)
1 parent 4869ba6 commit ca2faec

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

source/portal/client.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,8 @@ var Client = function(clientId, sigConnection, portal, version) {
9898
transportId = req.transport.id;
9999
} else {
100100
req.type = 'webrtc'; //FIXME: For backend compatibility with v3.4 clients.
101-
req.transport = { type : 'webrtc', id : stream_id };
102-
if (req.transportId) {
103-
req.transport.id = req.transportId;
101+
if (!req.transport || !req.transport.id) {
102+
req.transport = { type : 'webrtc', id : stream_id };
104103
}
105104
}
106105
transportId = req.transport.id;
@@ -154,9 +153,8 @@ var Client = function(clientId, sigConnection, portal, version) {
154153
transportId = req.transport.id;
155154
} else {
156155
req.type = 'webrtc'; //FIXME: For backend compatibility with v3.4 clients.
157-
req.transport = { type : 'webrtc', id : subscription_id };
158-
if (req.transportId) {
159-
req.transport.id = req.transportId;
156+
if (!req.transport || !req.transport.id) {
157+
req.transport = { type : 'webrtc', id : subscription_id };
160158
}
161159
}
162160
transportId = req.transport.id;

0 commit comments

Comments
 (0)