Skip to content

Commit 17b03b6

Browse files
committed
TimedAttempt: initialize missing variables at begin
1 parent eaf2a47 commit 17b03b6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/utility/time/TimedAttempt.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,16 @@ TimedAttempt::TimedAttempt(unsigned long minDelay, unsigned long maxDelay)
3030

3131
void TimedAttempt::begin(unsigned long delay) {
3232
_retryCount = 0;
33+
_retryDelay = 0;
34+
_retryTick = 0;
3335
_minDelay = delay;
3436
_maxDelay = delay;
3537
}
3638

3739
void TimedAttempt::begin(unsigned long minDelay, unsigned long maxDelay) {
3840
_retryCount = 0;
41+
_retryDelay = 0;
42+
_retryTick = 0;
3943
_minDelay = minDelay;
4044
_maxDelay = maxDelay;
4145
}

0 commit comments

Comments
 (0)