From d518741bb112631b125131767ddde924fe255c8a Mon Sep 17 00:00:00 2001 From: Gerrit Linnemann Date: Mon, 10 Apr 2017 21:58:18 +0200 Subject: [PATCH] Fixes --- hobu_alert_system_motion/app.js | 2 +- hobu_distance_ir_io/app.js | 2 +- hobu_distance_switch/app.js | 2 +- hobu_io4/app.js | 2 +- hobu_sound_intensity/app.js | 2 +- hobu_value_picker/app.js | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/hobu_alert_system_motion/app.js b/hobu_alert_system_motion/app.js index 299be45..f4d025a 100644 --- a/hobu_alert_system_motion/app.js +++ b/hobu_alert_system_motion/app.js @@ -13,7 +13,7 @@ Helper.each(Conf.items, function(item) { /* private */ function reconnect(item) { Log.debug('Reconnect ' + item.host); - setTimeout(connect(item), 10000); + setTimeout(function() { connect(item) }, 10000); } /* private */ diff --git a/hobu_distance_ir_io/app.js b/hobu_distance_ir_io/app.js index c628590..f01c62c 100644 --- a/hobu_distance_ir_io/app.js +++ b/hobu_distance_ir_io/app.js @@ -13,7 +13,7 @@ Helper.each(Conf.items, function(item) { /* private */ function reconnect(item) { Log.debug('Reconnect ' + item.host); - setTimeout(connect(item), 10000); + setTimeout(function() { connect(item) }, 10000); } /* private */ diff --git a/hobu_distance_switch/app.js b/hobu_distance_switch/app.js index 41b9bbe..59d99de 100644 --- a/hobu_distance_switch/app.js +++ b/hobu_distance_switch/app.js @@ -13,7 +13,7 @@ Helper.each(Conf.items, function(item) { /* private */ function reconnect(item) { Log.debug('Reconnect ' + item.host); - setTimeout(connect(item), 10000); + setTimeout(function() { connect(item) }, 10000); } /* private */ diff --git a/hobu_io4/app.js b/hobu_io4/app.js index 5279958..a0637e4 100644 --- a/hobu_io4/app.js +++ b/hobu_io4/app.js @@ -13,7 +13,7 @@ Helper.each(Conf.items, function(item) { /* private */ function reconnect(item) { Log.debug('Reconnect ' + item.host); - setTimeout(connect(item), 10000); + setTimeout(function() { connect(item) }, 10000); } /* private */ diff --git a/hobu_sound_intensity/app.js b/hobu_sound_intensity/app.js index b7e7263..099c4f1 100644 --- a/hobu_sound_intensity/app.js +++ b/hobu_sound_intensity/app.js @@ -13,7 +13,7 @@ Helper.each(Conf.items, function(item) { /* private */ function reconnect(item) { Log.debug('Reconnect ' + item.host); - setTimeout(connect(item), 10000); + setTimeout(function() { connect(item) }, 10000); } /* private */ diff --git a/hobu_value_picker/app.js b/hobu_value_picker/app.js index b4f1f5b..42627fc 100644 --- a/hobu_value_picker/app.js +++ b/hobu_value_picker/app.js @@ -13,7 +13,7 @@ Helper.each(Conf.items, function(item) { /* private */ function reconnect(item) { Log.debug('Reconnect ' + item.host); - setTimeout(connect(item), 10000); + setTimeout(function() { connect(item) }, 10000); } /* private */