Skip to content
Permalink
Browse files
timer_thread: remove redundant code
  • Loading branch information
lorinlee committed Jun 14, 2020
1 parent 83635bf commit 0144ddc733dfd25ad23ba23e25156947a6e1fd42
Showing 1 changed file with 1 addition and 3 deletions.
@@ -406,9 +406,7 @@ void TimerThread::run() {

// The realtime to wait for.
int64_t next_run_time = std::numeric_limits<int64_t>::max();
if (tasks.empty()) {
next_run_time = std::numeric_limits<int64_t>::max();
} else {
if (!tasks.empty()) {
next_run_time = tasks[0]->run_time;
}
// Similarly with the situation before running tasks, we check

0 comments on commit 0144ddc

Please sign in to comment.