mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-08-30 12:14:36 +00:00
Merge pull request #721 from zachborboa/master
Remove active curl handle when stopping requests early
This commit is contained in:
@@ -1055,7 +1055,12 @@ class MultiCurl
|
||||
|
||||
// Attempt to stop active curl requests.
|
||||
while (count($this->activeCurls)) {
|
||||
// Remove instance from active curls.
|
||||
$curl = array_pop($this->activeCurls);
|
||||
|
||||
// Remove active curl handle.
|
||||
curl_multi_remove_handle($this->multiCurl, $curl->curl);
|
||||
|
||||
$curl->stop();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user