usleep -> this_thread::sleep_for

This commit is contained in:
water
2020-09-08 19:43:03 -04:00
parent f0328dcc92
commit d35a8a3867
+1 -1
View File
@@ -376,7 +376,7 @@ bool Listener::wait_for_ack() {
for (int i = 0; i < 2000; i++) {
if (got_ack)
return true;
usleep(1000);
std::this_thread::sleep_for(std::chrono::microseconds(1000));
}
waiting_for_ack = false;