http-fetch: Tidy control flow in process_alternate_response
It's a bit convoluted. Tidy it up. Signed-off-by: Mark Wooding <mdw@distorted.org.uk> Signed-off-by: Junio C Hamano <junkio@cox.net>maint
parent
7982d74e1c
commit
a3f583cbf7
|
@ -468,13 +468,11 @@ static void process_alternates_response(void *callback_data)
|
||||||
alt_req->url);
|
alt_req->url);
|
||||||
active_requests++;
|
active_requests++;
|
||||||
slot->in_use = 1;
|
slot->in_use = 1;
|
||||||
if (start_active_slot(slot)) {
|
if (!start_active_slot(slot)) {
|
||||||
return;
|
|
||||||
} else {
|
|
||||||
got_alternates = -1;
|
got_alternates = -1;
|
||||||
slot->in_use = 0;
|
slot->in_use = 0;
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
} else if (slot->curl_result != CURLE_OK) {
|
} else if (slot->curl_result != CURLE_OK) {
|
||||||
if (slot->http_code != 404 &&
|
if (slot->http_code != 404 &&
|
||||||
|
|
Loading…
Reference in New Issue