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

Commit 6a4cdab

Browse files
authored
Fix room not destroyed issue when no actual stream and participant in… (#1305)
* Fix room not destroyed issue when no actual stream and participant in the room in cascading scenario * Fix repeating startCascading failed issue * Fix cascading stream lost issue when rejoining room * Refine js file format
1 parent 055bafd commit 6a4cdab

File tree

3 files changed

+339
-337
lines changed

3 files changed

+339
-337
lines changed

source/agent/conference/accessController.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ module.exports.create = function(spec, rpcReq, on_session_established, on_sessio
183183
log.debug('participantLeave, participantId:', participantId);
184184
var pl = [];
185185
for (var session_id in sessions) {
186-
if (sessions[session_id].owner === participantId) {
186+
if (sessions[session_id].owner === participantId && !sessions[session_id].locality.agent.startsWith('mediabridge')) {
187187
var direction = sessions[session_id].direction;
188188
pl.push(terminateSession(session_id));
189189
on_session_aborted(participantId, session_id, direction, 'Participant leave');

source/agent/conference/conference.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1064,7 +1064,7 @@ var Conference = function (rpcClient, selfRpcId) {
10641064
hasSubscription = false;
10651065

10661066
for (let k in participants) {
1067-
if (k !== 'admin' && !k.cascading) {
1067+
if (k !== 'admin' && !participants[k].cascading) {
10681068
hasNonAdminParticipant = true;
10691069
break;
10701070
}

0 commit comments

Comments
 (0)