]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
http client: fix the error code passed to conn_closed callback
authorJaroslav Kysela <perex@perex.cz>
Wed, 16 Apr 2014 17:29:37 +0000 (19:29 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 5 May 2014 20:00:36 +0000 (22:00 +0200)
src/httpc.c

index 4be83d74580a5a5e0c2bbc3225e3def72c6621f7..d949562ea76690187976fbccb4048922618ec5ca 100644 (file)
@@ -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;