@@ -1549,6 +1549,7 @@ static void on_uv_socket(uv_poll_t *req, int status, int events)
15491549
15501550 curl_multi_socket_action (c -> uv -> s -> multi , c -> sockfd , flags ,
15511551 & c -> uv -> s -> still_running );
1552+ progress_meter (c -> uv -> s -> multi , & c -> uv -> s -> start , FALSE);
15521553}
15531554
15541555/* callback from libuv when timeout expires */
@@ -1561,6 +1562,7 @@ static void on_uv_timeout(uv_timer_t *req)
15611562 if (uv && uv -> s ) {
15621563 curl_multi_socket_action (uv -> s -> multi , CURL_SOCKET_TIMEOUT , 0 ,
15631564 & uv -> s -> still_running );
1565+ progress_meter (uv -> s -> multi , & uv -> s -> start , FALSE);
15641566 }
15651567}
15661568
@@ -1733,7 +1735,6 @@ static CURLcode check_finished(struct parastate *s)
17331735 int rc ;
17341736 CURLMsg * msg ;
17351737 bool checkmore = FALSE;
1736- progress_meter (s -> multi , & s -> start , FALSE);
17371738 do {
17381739 msg = curl_multi_info_read (s -> multi , & rc );
17391740 if (msg ) {
@@ -1875,6 +1876,8 @@ static CURLcode parallel_transfers(CURLSH *share)
18751876 s -> mcode = curl_multi_poll (s -> multi , NULL , 0 , 1000 , NULL );
18761877 if (!s -> mcode )
18771878 s -> mcode = curl_multi_perform (s -> multi , & s -> still_running );
1879+
1880+ progress_meter (s -> multi , & s -> start , FALSE);
18781881 }
18791882
18801883 (void )progress_meter (s -> multi , & s -> start , TRUE);
@@ -2116,22 +2119,21 @@ static CURLcode transfer_per_config(struct OperationConfig *config,
21162119 bool * added ,
21172120 bool * skipped )
21182121{
2119- CURLcode result = CURLE_OK ;
2122+ CURLcode result ;
21202123 * added = FALSE;
21212124
21222125 /* Check we have a url */
21232126 if (!config -> url_list || !config -> url_list -> url ) {
21242127 helpf ("(%d) no URL specified" , CURLE_FAILED_INIT );
2125- return CURLE_FAILED_INIT ;
2128+ result = CURLE_FAILED_INIT ;
21262129 }
2127-
2128- if (!result )
2130+ else {
21292131 result = cacertpaths (config );
2130-
2131- if (! result ) {
2132- result = single_transfer ( config , share , added , skipped );
2133- if (! * added || result )
2134- single_transfer_cleanup ();
2132+ if (! result ) {
2133+ result = single_transfer ( config , share , added , skipped );
2134+ if (! * added || result )
2135+ single_transfer_cleanup ();
2136+ }
21352137 }
21362138
21372139 return result ;
0 commit comments