Commit 0d2ca28a authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Close camera on disconnect.

parent c540cad9
......@@ -333,6 +333,7 @@ function gotConnected() {
* @param {string} reason
*/
function gotClose(code, reason) {
closeUpMedia();
setConnected(false);
if(code != 1000) {
console.warn('Socket close', code, reason);
......@@ -1461,7 +1462,7 @@ function stopStream(s) {
* closeUpMedia closes all up connections with the given label. If label
* is null, it closes all up connections.
*
* @param {string} label
* @param {string} [label]
*/
function closeUpMedia(label) {
for(let id in serverConnection.up) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment