summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <junkio@cox.net>2006-03-15 09:12:18 -0800
committerLibravatar Junio C Hamano <junkio@cox.net>2006-03-15 09:12:18 -0800
commitd7da67148bd672b4e575da9b4e8cf509190f8491 (patch)
treee2ee336cfa4c4175a1b5f787348bc8751b4a2c1d
parentMerge branch 'lt/diff' into next (diff)
parentFix broken slot reuse when fetching alternates (diff)
downloadtgif-d7da67148bd672b4e575da9b4e8cf509190f8491.tar.xz
Merge branch 'master' into next
* master: Fix broken slot reuse when fetching alternates
-rw-r--r--http-fetch.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/http-fetch.c b/http-fetch.c
index 8fd9de081f..7de818b109 100644
--- a/http-fetch.c
+++ b/http-fetch.c
@@ -468,9 +468,13 @@ static void process_alternates_response(void *callback_data)
alt_req->url);
active_requests++;
slot->in_use = 1;
+ if (slot->finished != NULL)
+ (*slot->finished) = 0;
if (!start_active_slot(slot)) {
got_alternates = -1;
slot->in_use = 0;
+ if (slot->finished != NULL)
+ (*slot->finished) = 1;
}
return;
}