mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2025-12-23 22:37:53 -05:00
Fix initial status update
This commit is contained in:
@@ -81,7 +81,7 @@ function MonitorStream(monitorData) {
|
||||
this.img_onload = function() {
|
||||
if (!this.streamCmdTimer) {
|
||||
console.log('Image stream has loaded! starting streamCmd for monitor ID='+this.id+' connKey='+this.connKey+' in '+statusRefreshTimeout + 'ms');
|
||||
this.streamCmdQuery.bind(this); // This is to get an instant status update
|
||||
this.streamCmdQuery(); // This is to get an instant status update
|
||||
this.streamCmdTimer = setInterval(this.streamCmdQuery.bind(this), statusRefreshTimeout);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user