mirror of
https://github.com/aria2/aria2.git
synced 2025-02-26 08:22:11 +00:00
Use util::sleep() instead of sleep()
This commit is contained in:
parent
b9fb15f884
commit
80dbaf2566
@ -66,7 +66,7 @@ void LpdMessageDispatcherTest::testSendMessage()
|
||||
for(trycnt = 0; trycnt < 5; ++trycnt) {
|
||||
nbytes = recvsock->readDataFrom(buf, sizeof(buf), peer);
|
||||
if(nbytes == 0) {
|
||||
sleep(1);
|
||||
util::sleep(1);
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user