mirror of https://gitee.com/bigwinds/arangodb
change to sleep_until so older windows are pleased (and is a better fitting method anyway)
This commit is contained in:
parent
87be1f0391
commit
c071ebe6ca
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue