Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Commit

Permalink
[one2many] Close kurentoClient when session is empty
Browse files Browse the repository at this point in the history
Change-Id: I5039e05af6097c363b5042fb0266f5d07c928d79
  • Loading branch information
igracia committed Oct 13, 2016
1 parent 04835bf commit 908d86d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions kurento-one2many-call/server.js
Expand Up @@ -353,6 +353,12 @@ function stop(sessionId) {
}

clearCandidatesQueue(sessionId);

if (viewers.length < 1 && !presenter) {
console.log('Closing kurento client');
kurentoClient.close();
kurentoClient = null;
}
}

function onIceCandidate(sessionId, _candidate) {
Expand Down

0 comments on commit 908d86d

Please sign in to comment.