mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-24 19:32:07 +03:00
[project @ 2003-09-17 17:44:12 by bursa]
Fix aborting fetches. svn path=/import/netsurf/; revision=299
This commit is contained in:
parent
3db6bacff5
commit
6dc14a06b7
@ -168,6 +168,7 @@ struct fetch * fetch_start(char *url, char *referer,
|
|||||||
if (host_fetch != 0) {
|
if (host_fetch != 0) {
|
||||||
/* fetch from this host in progress: queue the new fetch */
|
/* fetch from this host in progress: queue the new fetch */
|
||||||
LOG(("queueing"));
|
LOG(("queueing"));
|
||||||
|
fetch->curl_handle = 0;
|
||||||
fetch->queue = host_fetch->queue;
|
fetch->queue = host_fetch->queue;
|
||||||
host_fetch->queue = fetch;
|
host_fetch->queue = fetch;
|
||||||
return fetch;
|
return fetch;
|
||||||
@ -269,8 +270,10 @@ void fetch_abort(struct fetch *f)
|
|||||||
f->next->prev = f->prev;
|
f->next->prev = f->prev;
|
||||||
|
|
||||||
/* remove from curl multi handle */
|
/* remove from curl multi handle */
|
||||||
|
if (f->cull_handle) {
|
||||||
codem = curl_multi_remove_handle(curl_multi, f->curl_handle);
|
codem = curl_multi_remove_handle(curl_multi, f->curl_handle);
|
||||||
assert(codem == CURLM_OK);
|
assert(codem == CURLM_OK);
|
||||||
|
}
|
||||||
|
|
||||||
if (f->queue != 0) {
|
if (f->queue != 0) {
|
||||||
/* start a queued fetch for this host, reusing the handle for this host */
|
/* start a queued fetch for this host, reusing the handle for this host */
|
||||||
|
Loading…
Reference in New Issue
Block a user