Skip to content

Commit

Permalink
Merge pull request #1137 from lorinlee/timer
Browse files Browse the repository at this point in the history
timer_thread: remove redundant code
  • Loading branch information
jamesge authored Jun 15, 2020
2 parents 83635bf + 0144ddc commit e5bd064
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/bthread/timer_thread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e5bd064

Please sign in to comment.