multi: call the progress callback in all states
authorDaniel Stenberg <daniel@haxx.se>
Thu, 17 Jun 2010 13:08:55 +0000 (15:08 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 17 Jun 2010 13:10:08 +0000 (15:10 +0200)
As long as no error is reported, the progress function can get
called. This may be a little TOO often so we should keep an eye
on this and possibly make this conditional somehow.

lib/multi.c

index 9abf339..f210dcf 100644 (file)
@@ -1528,6 +1528,8 @@ static CURLMcode multi_runsingle(struct Curl_multi *multi,
 
         multistate(easy, CURLM_STATE_COMPLETED);
       }
+      else
+        Curl_pgrsUpdate(easy->easy_conn);
     }
   } while(0);
   if((CURLM_STATE_COMPLETED == easy->state) && !easy->msg) {