Skip to content

Commit

Permalink
Prevent ThingUpdater from getting stuck due to reordering of TICK sig…
Browse files Browse the repository at this point in the history
…nals.

Signed-off-by: Yufei Cai <yufei.cai@bosch.io>
  • Loading branch information
yufei-cai committed Apr 19, 2022
1 parent 06deaa3 commit 5bf7667
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -284,7 +284,7 @@ private void handleTransition(final State previousState, final State nextState)
backOff = backOff.calculateNextBackOff();
delay = backOff.getRestartDelay();
}
startSingleTimer(Control.TICK.name(), Control.TICK, delay);
startTimerWithFixedDelay(Control.TICK.name(), Control.TICK, delay);
unstashAll();
}
default -> cancelTimer(Control.TICK.name());
Expand Down

0 comments on commit 5bf7667

Please sign in to comment.