Move download complete handling to Curl::exec()

This commit is contained in:
Zach Borboa
2016-09-02 01:30:16 -07:00
parent e55c556601
commit b907159c2f
2 changed files with 5 additions and 5 deletions
+5
View File
@@ -385,6 +385,11 @@ class Curl
$this->call($this->completeFunction);
// Close open file handles and reset the curl instance.
if (!($this->fileHandle === null)) {
$this->downloadComplete($this->fileHandle);
}
return $this->response;
}
-5
View File
@@ -543,11 +543,6 @@ class MultiCurl
$ch->exec($ch->curl);
curl_multi_remove_handle($this->multiCurl, $ch->curl);
unset($this->curls[$key]);
// Close open file handles and reset the curl instance.
if (!($ch->fileHandle === null)) {
$ch->downloadComplete($ch->fileHandle);
}
break;
}
}