mirror of https://github.com/kiwix/libkiwix.git
Wait a bit more between attempts to connect to aria2c rpc.
This commit is contained in:
parent
84e831eae9
commit
94a053e821
|
@ -44,7 +44,7 @@ Aria2::Aria2():
|
||||||
m_secret = "token:"+m_secret;
|
m_secret = "token:"+m_secret;
|
||||||
|
|
||||||
std::string aria2cmd = appendToDirectory(
|
std::string aria2cmd = appendToDirectory(
|
||||||
removeLastPathElement(getExecutablePath()),
|
removeLastPathElement(getExecutablePath(), true, true),
|
||||||
ARIA2_CMD);
|
ARIA2_CMD);
|
||||||
if (fileExists(aria2cmd)) {
|
if (fileExists(aria2cmd)) {
|
||||||
// A local aria2c exe exists (packaged with kiwix-desktop), use it.
|
// A local aria2c exe exists (packaged with kiwix-desktop), use it.
|
||||||
|
@ -81,7 +81,7 @@ Aria2::Aria2():
|
||||||
|
|
||||||
int watchdog = 50;
|
int watchdog = 50;
|
||||||
while(--watchdog) {
|
while(--watchdog) {
|
||||||
std::this_thread::sleep_for(std::chrono::microseconds(100));
|
std::this_thread::sleep_for(std::chrono::microseconds(10000));
|
||||||
auto res = curl_easy_perform(mp_curl);
|
auto res = curl_easy_perform(mp_curl);
|
||||||
if (res == CURLE_OK) {
|
if (res == CURLE_OK) {
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue