diff --git a/index.js b/index.js index c70ba6c..e71b853 100755 --- a/index.js +++ b/index.js @@ -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); }