return call_multi when we follow a location
authorDaniel Stenberg <daniel@haxx.se>
Fri, 18 Oct 2002 15:27:49 +0000 (15:27 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 18 Oct 2002 15:27:49 +0000 (15:27 +0000)
lib/multi.c

index c9861c24aa6c8cf1c6639275f0aaedb61d908e8e..98700742dea1ab18d99654839b1b93d0225092e7 100644 (file)
@@ -430,8 +430,10 @@ CURLMcode curl_multi_perform(CURLM *multi_handle, int *running_handles)
         if(easy->easy_conn->newurl) {
           easy->result = Curl_follow(easy->easy_handle,
                                      strdup(easy->easy_conn->newurl));
-          if(CURLE_OK == easy->result)
+          if(CURLE_OK == easy->result) {
             easy->state = CURLM_STATE_CONNECT;
+            result = CURLM_CALL_MULTI_PERFORM;
+          }
         }
         else {
           easy->state = CURLM_STATE_DONE;