Skip to content

Commit

Permalink
respect regaEnabled settings (fix #16)
Browse files Browse the repository at this point in the history
  • Loading branch information
hobbyquaker committed Aug 29, 2018
1 parent fb55c88 commit cb59ce2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nodes/ccu-connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ module.exports = function (RED) {
.then(() => this.getRegaPrograms())
.catch(err => this.logger.error('getRegaPrograms', err))
.then(() => {
if (this.regaInterval && !this.cancelRegaPoll) {
if (this.regaInterval && this.regaEnabled && !this.cancelRegaPoll) {
this.logger.trace('rega next poll in', this.regaInterval, 'seconds');
this.regaPollTimeout = setTimeout(() => {
this.regaPoll();
Expand Down

0 comments on commit cb59ce2

Please sign in to comment.