Skip to content

Commit 0d2ca28

Browse files
committed
Close camera on disconnect.
1 parent c540cad commit 0d2ca28

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

static/galene.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,7 @@ function gotConnected() {
333333
* @param {string} reason
334334
*/
335335
function gotClose(code, reason) {
336+
closeUpMedia();
336337
setConnected(false);
337338
if(code != 1000) {
338339
console.warn('Socket close', code, reason);
@@ -1461,7 +1462,7 @@ function stopStream(s) {
14611462
* closeUpMedia closes all up connections with the given label. If label
14621463
* is null, it closes all up connections.
14631464
*
1464-
* @param {string} label
1465+
* @param {string} [label]
14651466
*/
14661467
function closeUpMedia(label) {
14671468
for(let id in serverConnection.up) {

0 commit comments

Comments
 (0)