Skip to content

Commit

Permalink
Exec 2.0: Fix openhab#1533 (openhab#1536)
Browse files Browse the repository at this point in the history
Signed-off-by: Karel Goderis <karel.goderis@me.com>
  • Loading branch information
kgoderis authored and fharni committed Feb 10, 2017
1 parent 4f13999 commit 503c3c6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public void handleCommand(ChannelUID channelUID, Command command) {
public void initialize() {

if (executionJob == null || executionJob.isCancelled()) {
if (((BigDecimal) getConfig().get(INTERVAL)) != null) {
if (((BigDecimal) getConfig().get(INTERVAL)) != null && ((BigDecimal) getConfig().get(INTERVAL)).intValue() > 0) {
int polling_interval = ((BigDecimal) getConfig().get(INTERVAL)).intValue();
executionJob = scheduler.scheduleWithFixedDelay(periodicExecutionRunnable, 0, polling_interval,
TimeUnit.SECONDS);
Expand Down

0 comments on commit 503c3c6

Please sign in to comment.