Skip to content

Commit

Permalink
Immediately do a status command when the image loads instead of waiti…
Browse files Browse the repository at this point in the history
…ng statusInterval for it.
  • Loading branch information
Isaac Connor committed May 16, 2024
1 parent 41d766c commit 9f730bc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions web/js/MonitorStream.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ function MonitorStream(monitorData) {
this.img_onload = function() {
if (!this.streamCmdTimer) {
console.log('Image stream has loaded! starting streamCmd for '+this.connKey+' in '+statusRefreshTimeout + 'ms');
this.streamCmdQuery.bind(this);
this.streamCmdTimer = setInterval(this.streamCmdQuery.bind(this), statusRefreshTimeout);
}
};
Expand Down

0 comments on commit 9f730bc

Please sign in to comment.