Skip to content

Commit

Permalink
fix timeout tag for timeout=0
Browse files Browse the repository at this point in the history
  • Loading branch information
cmnrd committed Sep 20, 2023
1 parent 35434aa commit fa685f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/environment.cc
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,8 @@ auto Environment::startup(const TimePoint& start_time) -> std::thread {
this->start_tag_ = Tag::from_physical_time(start_time);
if (this->timeout_ == Duration::max()) {
this->timeout_tag_ = Tag::max();
} else if (this->timeout_ == Duration::zero()) {
this->timeout_tag_ = this->start_tag_;
} else {
this->timeout_tag_ = this->start_tag_.delay(this->timeout_);
}
Expand Down

0 comments on commit fa685f1

Please sign in to comment.