mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-09-07 22:27:00 -04:00
Merge pull request #1169 from kiwix/wait-1s-to-aria2c
Wait up to 1s to le aria2c to start
This commit is contained in:
commit
bb65d77229
@ -124,7 +124,7 @@ Aria2::Aria2(std::string sessionFileDir):
|
|||||||
|
|
||||||
typedef std::chrono::duration<double> Seconds;
|
typedef std::chrono::duration<double> Seconds;
|
||||||
|
|
||||||
const double MAX_WAITING_TIME_SECONDS = 0.5;
|
const double MAX_WAITING_TIME_SECONDS = 1;
|
||||||
const auto t0 = std::chrono::steady_clock::now();
|
const auto t0 = std::chrono::steady_clock::now();
|
||||||
bool maxWaitingTimeWasExceeded = false;
|
bool maxWaitingTimeWasExceeded = false;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user