X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=http.c;h=256a5f15f40a8d9389560e1fb08e34a56e9f7140;hb=ae90e16a3a7586bc25b7c7de50e4c3ba4806b3b9;hp=8e554c09694456acc96dd9ba70c44870cb89f25d;hpb=d2c425aa2bb8543ea08ca44b04ffacc972a7ad61;p=git.git diff --git a/http.c b/http.c index 8e554c096..256a5f15f 100644 --- a/http.c +++ b/http.c @@ -284,23 +284,15 @@ void http_init(struct remote *remote) void http_cleanup(void) { struct active_request_slot *slot = active_queue_head; -#ifdef USE_CURL_MULTI - char *wait_url; -#endif while (slot != NULL) { struct active_request_slot *next = slot->next; + if (slot->curl != NULL) { #ifdef USE_CURL_MULTI - if (slot->in_use) { - curl_easy_getinfo(slot->curl, - CURLINFO_EFFECTIVE_URL, - &wait_url); - fprintf(stderr, "Waiting for %s\n", wait_url); - run_active_slot(slot); - } + curl_multi_remove_handle(curlm, slot->curl); #endif - if (slot->curl != NULL) curl_easy_cleanup(slot->curl); + } free(slot); slot = next; }