diff --git a/rtc_base/task_utils/repeating_task.cc b/rtc_base/task_utils/repeating_task.cc index 8d64334cff..0cc9a6279d 100644 --- a/rtc_base/task_utils/repeating_task.cc +++ b/rtc_base/task_utils/repeating_task.cc @@ -30,13 +30,13 @@ bool RepeatingTaskBase::Run() { return true; TimeDelta delay = RunClosure(); - RTC_DCHECK(delay.IsFinite()); // The closure might have stopped this task, in which case we return true to // destruct this object. if (next_run_time_.IsPlusInfinity()) return true; - + + RTC_DCHECK(delay.IsFinite()); TimeDelta lost_time = Timestamp::us(rtc::TimeMicros()) - next_run_time_; next_run_time_ += delay; delay -= lost_time;