1
0
Fork 0

change to sleep_until so older windows are pleased (and is a better fitting method anyway)

This commit is contained in:
Andreas Streichardt 2017-05-10 17:11:37 +02:00
parent 87be1f0391
commit c071ebe6ca
1 changed files with 1 additions and 1 deletions

View File

@ -1344,7 +1344,7 @@ AgencyCommResult AgencyComm::sendWithFailover(
return result;
}
std::this_thread::sleep_for(waitUntil-std::chrono::steady_clock::now());
std::this_thread::sleep_until(waitUntil);
if (waitInterval.count() == 0.0) {
waitInterval = std::chrono::duration<double>(0.25);
} else if (waitInterval.count() < 5.0) {