X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Flibs%2FMultiHttpClient.php;h=a6135aeb7ae0b8c7a771a2cb96217e0e4495cc43;hp=536177edebb8fe23f7da1e9dbf7f9303a773db95;hb=6568edb9e2e6b3988d8355360fa891ddf06fbdfa;hpb=0e3667be51296aabc342d89844d59641d7fb2361 diff --git a/includes/libs/MultiHttpClient.php b/includes/libs/MultiHttpClient.php index 536177edeb..a6135aeb7a 100644 --- a/includes/libs/MultiHttpClient.php +++ b/includes/libs/MultiHttpClient.php @@ -237,11 +237,9 @@ class MultiHttpClient implements LoggerAwareInterface { } } while ( $mrc == CURLM_CALL_MULTI_PERFORM ); // Wait (if possible) for available work... - if ( $active > 0 && $mrc == CURLM_OK ) { - if ( curl_multi_select( $chm, $selectTimeout ) == -1 ) { - // PHP bug 63411; https://curl.haxx.se/libcurl/c/curl_multi_fdset.html - usleep( 5000 ); // 5ms - } + if ( $active > 0 && $mrc == CURLM_OK && curl_multi_select( $chm, $selectTimeout ) == -1 ) { + // PHP bug 63411; https://curl.haxx.se/libcurl/c/curl_multi_fdset.html + usleep( 5000 ); // 5ms } } while ( $active > 0 && $mrc == CURLM_OK ); }