Skip to content

Commit

Permalink
Ensure we are not calling in with zero
Browse files Browse the repository at this point in the history
  • Loading branch information
ctron committed Sep 30, 2019
1 parent 0296d37 commit 10fe986
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public Device(final Vertx vertx, final Supplier<HttpRequest<?>> requestProvider,
}

public void start() {
final var initialDelay = JITTER.nextInt((int) config.getPeriod().toMillis());
final var initialDelay = JITTER.nextInt((int) config.getPeriod().toMillis()) + 1;
schedule(initialDelay);
}

Expand Down

0 comments on commit 10fe986

Please sign in to comment.