new Curl_done() proto
This commit is contained in:
parent
8001921112
commit
d70a335dce
@ -331,7 +331,7 @@ CURLMcode curl_multi_perform(CURLM *multi_handle, int *running_handles)
|
|||||||
char *gotourl;
|
char *gotourl;
|
||||||
Curl_posttransfer(easy->easy_handle);
|
Curl_posttransfer(easy->easy_handle);
|
||||||
|
|
||||||
easy->result = Curl_done(easy->easy_conn, CURLE_OK);
|
easy->result = Curl_done(&easy->easy_conn, CURLE_OK);
|
||||||
if(CURLE_OK == easy->result) {
|
if(CURLE_OK == easy->result) {
|
||||||
gotourl = strdup(easy->easy_handle->change.url);
|
gotourl = strdup(easy->easy_handle->change.url);
|
||||||
if(gotourl) {
|
if(gotourl) {
|
||||||
@ -500,7 +500,7 @@ CURLMcode curl_multi_perform(CURLM *multi_handle, int *running_handles)
|
|||||||
easy->easy_conn->sock[SECONDARYSOCKET]=-1;
|
easy->easy_conn->sock[SECONDARYSOCKET]=-1;
|
||||||
}
|
}
|
||||||
Curl_posttransfer(easy->easy_handle);
|
Curl_posttransfer(easy->easy_handle);
|
||||||
Curl_done(easy->easy_conn, easy->result);
|
Curl_done(&easy->easy_conn, easy->result);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* after the transfer is done, go DONE */
|
/* after the transfer is done, go DONE */
|
||||||
@ -513,7 +513,7 @@ CURLMcode curl_multi_perform(CURLM *multi_handle, int *running_handles)
|
|||||||
if(easy->easy_conn->newurl) {
|
if(easy->easy_conn->newurl) {
|
||||||
char *newurl = easy->easy_conn->newurl;
|
char *newurl = easy->easy_conn->newurl;
|
||||||
easy->easy_conn->newurl = NULL;
|
easy->easy_conn->newurl = NULL;
|
||||||
easy->result = Curl_done(easy->easy_conn, CURLE_OK);
|
easy->result = Curl_done(&easy->easy_conn, CURLE_OK);
|
||||||
if(easy->result == CURLE_OK)
|
if(easy->result == CURLE_OK)
|
||||||
easy->result = Curl_follow(easy->easy_handle, newurl);
|
easy->result = Curl_follow(easy->easy_handle, newurl);
|
||||||
if(CURLE_OK == easy->result) {
|
if(CURLE_OK == easy->result) {
|
||||||
@ -529,7 +529,7 @@ CURLMcode curl_multi_perform(CURLM *multi_handle, int *running_handles)
|
|||||||
break;
|
break;
|
||||||
case CURLM_STATE_DONE:
|
case CURLM_STATE_DONE:
|
||||||
/* post-transfer command */
|
/* post-transfer command */
|
||||||
easy->result = Curl_done(easy->easy_conn, CURLE_OK);
|
easy->result = Curl_done(&easy->easy_conn, CURLE_OK);
|
||||||
|
|
||||||
/* after we have DONE what we're supposed to do, go COMPLETED, and
|
/* after we have DONE what we're supposed to do, go COMPLETED, and
|
||||||
it doesn't matter what the Curl_done() returned! */
|
it doesn't matter what the Curl_done() returned! */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user