Skip to content

Commit fa685f1

Browse files
committed
fix timeout tag for timeout=0
1 parent 35434aa commit fa685f1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/environment.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,8 @@ auto Environment::startup(const TimePoint& start_time) -> std::thread {
332332
this->start_tag_ = Tag::from_physical_time(start_time);
333333
if (this->timeout_ == Duration::max()) {
334334
this->timeout_tag_ = Tag::max();
335+
} else if (this->timeout_ == Duration::zero()) {
336+
this->timeout_tag_ = this->start_tag_;
335337
} else {
336338
this->timeout_tag_ = this->start_tag_.delay(this->timeout_);
337339
}

0 commit comments

Comments
 (0)