changed the wait time

This commit is contained in:
Fufu Fang 2018-07-24 18:40:48 +01:00
parent 37717bb15e
commit 5e9adf9cfe
1 changed files with 3 additions and 2 deletions

View File

@ -37,7 +37,7 @@ typedef struct {
} TransferStruct;
/* ------------------------ Static variable ------------------------------ */
/** \brief curl shared interface - not actually being used. */
/** \brief curl shared interface - not sure if is being used properly. */
static CURLSH *curl_share;
/** \brief curl multi interface handle */
static CURLM *curl_multi;
@ -227,7 +227,7 @@ static int curl_multi_perform_once()
}
if(max_fd == -1) {
sleep((unsigned int)timeout / 1000);
sleep(1);
} else {
struct timeval t;
t.tv_sec = timeout/1000;
@ -260,6 +260,7 @@ static int curl_multi_perform_once()
curl_msg->data.result,
curl_easy_strerror(curl_msg->data.result),
url);
sleep(1);
} else {
/* Transfer successful, query the file size */
if (transfer->type == FILESTAT) {