From: Jaroslav Kysela Date: Wed, 16 Apr 2014 17:29:37 +0000 (+0200) Subject: http client: fix the error code passed to conn_closed callback X-Git-Tag: v4.1~2115^2~20 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e7082c8d2e2a6fe06ba964a29d6475f5e2b8dab2;p=thirdparty%2Ftvheadend.git http client: fix the error code passed to conn_closed callback --- diff --git a/src/httpc.c b/src/httpc.c index 4be83d745..d949562ea 100644 --- a/src/httpc.c +++ b/src/httpc.c @@ -182,9 +182,9 @@ http_client_cmd_destroy( http_client_t *hc, http_client_wcmd_t *cmd ) static int http_client_flush( http_client_t *hc, int result ) { + hc->hc_result = result; if (result < 0) http_client_shutdown(hc, 0); - hc->hc_result = result; hc->hc_in_data = 0; hc->hc_hsize = 0; hc->hc_csize = 0;