Merge pull request #721 from zachborboa/master

Remove active curl handle when stopping requests early
This commit is contained in:
Zach Borboa
2022-06-30 14:12:42 -04:00
committed by GitHub
+5
View File
@@ -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();
}
}