diff options
-rw-r--r-- | it_url.class | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/it_url.class b/it_url.class index 40f22f9..ea2771c 100644 --- a/it_url.class +++ b/it_url.class @@ -529,9 +529,9 @@ static function get_multi($p=null) $addhandle($key, $urls[$key]); unset($sleepuntils[$key]); } - $active = 1; } - usleep($sleepuntils ? 100000 : 0); + if ($sleepuntils && !count($handles)) + usleep(100000); $timeout = 0.1; # Longer delay to avoid busy loop but shorter than default of 1s in case we stil hit cURL 7.25.0 problem } |