From ca40a794d2ebaa505c751bbe462da1a0f6d9385c Mon Sep 17 00:00:00 2001 From: IgorA100 Date: Wed, 29 May 2024 17:06:33 +0300 Subject: [PATCH] Added this.started = true/false when starting/stopping the monitor (MonitorStream.js) --- web/js/MonitorStream.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/js/MonitorStream.js b/web/js/MonitorStream.js index a4018cd74..582c69096 100644 --- a/web/js/MonitorStream.js +++ b/web/js/MonitorStream.js @@ -316,6 +316,7 @@ function MonitorStream(monitorData) { } stream.onerror = this.img_onerror.bind(this); stream.onload = this.img_onload.bind(this); + this.started = true; }; // this.start this.stop = function() { @@ -331,6 +332,7 @@ function MonitorStream(monitorData) { this.streamCommand(CMD_STOP); this.statusCmdTimer = clearInterval(this.statusCmdTimer); this.streamCmdTimer = clearInterval(this.streamCmdTimer); + this.started = false; }; this.kill = function() {