Added this.started = true/false when starting/stopping the monitor (MonitorStream.js)

This commit is contained in:
IgorA100
2024-05-29 17:06:33 +03:00
committed by GitHub
parent 3ece22446f
commit ca40a794d2

View File

@@ -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() {