summaryrefslogtreecommitdiff
path: root/it_url.class
diff options
context:
space:
mode:
Diffstat (limited to 'it_url.class')
-rw-r--r--it_url.class3
1 files changed, 3 insertions, 0 deletions
diff --git a/it_url.class b/it_url.class
index 54128dd..8b2bd2b 100644
--- a/it_url.class
+++ b/it_url.class
@@ -421,12 +421,15 @@ static function get_multi($p=null)
if (it::match(self::$retryable, curl_getinfo($handles[$key], CURLINFO_RESPONSE_CODE)) && $retries[$key]++ < $p['retries'])
$sleepuntils[$key] = microtime(true) + $p['retrysleep'];
+ else
+ unset($urls[$key]);
$closehandle($key);
} else if($retries[$key]++ < $p['retries']) {
$closehandle($key); # closehandle must be called before addhandle as we use the same key
$sleepuntils[$key] = microtime(true) + $p['retrysleep'];
} else {
$results_unordered[$key] = false;
+ unset($urls[$key]);
$closehandle($key);
}