http: always remove curl easy from curlm session on release
commit2abc848d5431d028b4a6c643c93c7e371e7fdc7e
authorEric Wong <e@80x24.org>
Tue, 13 Sep 2016 00:25:57 +0000 (13 00:25 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 13 Sep 2016 20:34:04 +0000 (13 13:34 -0700)
treefd322c408fc841f12b3b5e3bd8766c1e92c118f8
parentd8b6b84df024b4ce2c10d7e5c725da24dcb19ff6
http: always remove curl easy from curlm session on release

We must call curl_multi_remove_handle when releasing the slot to
prevent subsequent calls to curl_multi_add_handle from failing
with CURLM_ADDED_ALREADY (in curl 7.32.1+; older versions
returned CURLM_BAD_EASY_HANDLE)

Signed-off-by: Eric Wong <e@80x24.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
http.c