FIX: _open_stream: Skip pbar update if failed
commite000135d5309d41fc26ab09a3b9b594d0ffb5ecb
authorToni Gundogdu <legatvs@gmail.com>
Wed, 27 Mar 2013 10:59:34 +0000 (27 12:59 +0200)
committerToni Gundogdu <legatvs@gmail.com>
Wed, 27 Mar 2013 14:45:25 +0000 (27 16:45 +0200)
tree0b4ca4ac1a6915d79914db308f8636b4ba4f3a0c
parentbf71a3373848a557ed0925861c53bea38e5bb975
FIX: _open_stream: Skip pbar update if failed

_setup_curl: may return anything but EXIT_SUCCESS in which case the
pbar->flags.failed must be set accordingly. Otherwise we will see the
progressbar print an 'update' line even when an error occurred.

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
src/get/http.c