Skip to content

Commit

Permalink
Merge branch 'master' into master-with-d
Browse files Browse the repository at this point in the history
  • Loading branch information
xtne6f committed May 22, 2024
2 parents 4850e9c + 0ec61ba commit 5846953
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tsmemseg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ void Worker(std::vector<SEGMENT_CONTEXT> &segments, CManualResetEvent &stopEvent
timeval tv = {};
tv.tv_usec = static_cast<long>(std::max<int64_t>(tick - GetMsecTick(), 0) * 1000);
if (tv.tv_usec <= 0 || tv.tv_usec >= 1000000 ||
select(maxfd + 1, &wfd, nullptr, nullptr, &tv) < 0 ||
select(maxfd + 1, nullptr, &wfd, nullptr, &tv) < 0 ||
stopEvent.WaitOne(std::chrono::milliseconds(0))) {
break;
}
Expand Down

0 comments on commit 5846953

Please sign in to comment.