Skip to content

Commit

Permalink
Bind device with lambda function to prevent blocking initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
pbogut committed Aug 21, 2020
1 parent 47f3a49 commit f46d914
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,9 @@ public void initialize() {
updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.CONFIGURATION_ERROR,
"Invalid EWPE Smart config. Check configuration.");
} else {
// @fixme @todo not working within lambda, not sure why
// scheduler.execute(() -> {
// bindDevice();
// });
bindDevice();
scheduler.execute(() -> {
bindDevice();
});
}

logger.debug("Finished initializing!");
Expand Down

0 comments on commit f46d914

Please sign in to comment.