Skip to content

Commit

Permalink
Merge pull request #480 from pennam/retry-fix
Browse files Browse the repository at this point in the history
TimedAttempt: fix reload function not applying tick retry limit
  • Loading branch information
pennam authored Jun 19, 2024
2 parents 337bc0b + 323e567 commit de5fbb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utility/time/TimedAttempt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ unsigned long TimedAttempt::retry() {
unsigned long TimedAttempt::reload() {
unsigned long retryDelay = (1 << _retryCount) * _minDelay;
_retryDelay = min(retryDelay, _maxDelay);
_nextRetryTick = millis() + retryDelay;
return retryDelay;
_nextRetryTick = millis() + _retryDelay;
return _retryDelay;
}

void TimedAttempt::reset() {
Expand Down

0 comments on commit de5fbb5

Please sign in to comment.