Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
NebzHB authored Jan 15, 2024
1 parent 14f44db commit 810c6ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5623,7 +5623,7 @@ JeedomPlatform.prototype.startPollingUpdate = function() {
}
}).then(function(){
that.pollingUpdateRunning = false;
that.pollingID = setTimeout(function(){ /* that.log('debug','==RESTART POLLING=='); */that.startPollingUpdate(); }, that.pollerPeriod * 1000);
that.pollingID = setImmediate(() => that.startPollingUpdate());
}).catch(function(err) {
that.log('error','Erreur de récupération des évènements de mise à jour: ', err);
if(err && err.stack) { console.error(err.stack); }
Expand Down

0 comments on commit 810c6ee

Please sign in to comment.