summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2021-05-24 09:06:54 +0300
committerDevaev Maxim <[email protected]>2021-05-24 09:06:54 +0300
commit566a58665e987b01d37a96baa7cf0198731eb384 (patch)
treed10905ef9ceacbf263c6f03846a78837ca27fbd7
parentdb192b0769f3b9e8f6940eb463a2294130bced94 (diff)
lint fix
-rw-r--r--web/share/js/kvm/stream.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/web/share/js/kvm/stream.js b/web/share/js/kvm/stream.js
index a7058ad4..c7a2fecb 100644
--- a/web/share/js/kvm/stream.js
+++ b/web/share/js/kvm/stream.js
@@ -131,7 +131,7 @@ function _JanusStreamer(__setActive, __setInactive, __setInfo) {
error: function(error) {
__logError("Can't attach uStreamer: ", error);
- __setInfo(false, false, error)
+ __setInfo(false, false, error);
__destroyJanus();
},
@@ -162,7 +162,7 @@ function _JanusStreamer(__setActive, __setInactive, __setInfo) {
__logError("Got janus error:", msg.error);
__sendStop();
__sendWatch();
- __setInfo(false, false, msg.error)
+ __setInfo(false, false, msg.error);
return;
} else {
__logInfo("Got Janus message:", msg);
@@ -279,14 +279,14 @@ function _MjpegStreamer(__setActive, __setInactive, __setInfo) {
__state = state;
__findId();
if (__id.length > 0 && __id in __state.stream.clients_stat) {
- __setActive();
+ __setStreamActive();
__stopChecking();
} else {
__ensureChecking();
}
} else {
__stopChecking();
- __setInactive();
+ __setStreamInactive();
}
};
@@ -298,7 +298,7 @@ function _MjpegStreamer(__setActive, __setInactive, __setInfo) {
}
};
- var __setActive = function() {
+ var __setStreamActive = function() {
let old_fps = __fps;
__fps = __state.stream.clients_stat[__id].fps;
if (old_fps < 0) {
@@ -308,7 +308,7 @@ function _MjpegStreamer(__setActive, __setInactive, __setInfo) {
__setInfo(true, __state.source.online, `${__fps} fps`);
};
- var __setInactive = function() {
+ var __setStreamInactive = function() {
let old_fps = __fps;
__key = tools.makeId();
__id = "";
@@ -348,14 +348,14 @@ function _MjpegStreamer(__setActive, __setInactive, __setInfo) {
__findId();
if (__id.legnth > 0 && __id in __state.stream.clients_stat) {
- __setActive();
+ __setStreamActive();
__stopChecking();
} else if (__id.length > 0 && __timer_retries >= 0) {
__timer_retries -= 1;
} else {
- __setInactive();
+ __setStreamInactive();
__stopChecking();
let path = `/streamer/stream?key=${__key}`;