mirror of
https://github.com/moparisthebest/curl
synced 2025-03-11 07:39:50 -04:00
multi_runsingle: change state on callback abort
Reported by: Marcin Adamski Bug: http://curl.haxx.se/mail/lib-2011-09/0329.html
This commit is contained in:
parent
7be872c389
commit
3d19e1eedf
@ -1656,8 +1656,10 @@ static CURLMcode multi_runsingle(struct Curl_multi *multi,
|
|||||||
multistate(easy, CURLM_STATE_COMPLETED);
|
multistate(easy, CURLM_STATE_COMPLETED);
|
||||||
}
|
}
|
||||||
/* if there's still a connection to use, call the progress function */
|
/* if there's still a connection to use, call the progress function */
|
||||||
else if(easy->easy_conn && Curl_pgrsUpdate(easy->easy_conn))
|
else if(easy->easy_conn && Curl_pgrsUpdate(easy->easy_conn)) {
|
||||||
easy->result = CURLE_ABORTED_BY_CALLBACK;
|
easy->result = CURLE_ABORTED_BY_CALLBACK;
|
||||||
|
multistate(easy, CURLM_STATE_COMPLETED);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} WHILE_FALSE; /* just to break out from! */
|
} WHILE_FALSE; /* just to break out from! */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user