Handle errors returned by curl_multi_perform(), such as out of memory, instead of exiting.
svn path=/trunk/netsurf/; revision=4329
This commit is contained in:
parent
5fa68a06c2
commit
3d590b1efa
|
@ -718,7 +718,12 @@ void fetch_curl_poll(const char *scheme_ignored)
|
|||
/* do any possible work on the current fetches */
|
||||
do {
|
||||
codem = curl_multi_perform(fetch_curl_multi, &running);
|
||||
assert(codem == CURLM_OK || codem == CURLM_CALL_MULTI_PERFORM);
|
||||
if (codem != CURLM_OK && codem != CURLM_CALL_MULTI_PERFORM) {
|
||||
LOG(("curl_multi_perform: %i %s",
|
||||
codem, curl_multi_strerror(codem)));
|
||||
warn_user("MiscError", curl_multi_strerror(codem));
|
||||
return;
|
||||
}
|
||||
} while (codem == CURLM_CALL_MULTI_PERFORM);
|
||||
|
||||
/* process curl results */
|
||||
|
|
Loading…
Reference in New Issue