*** empty log message ***
authorGisle Vanem <gvanem@broadpark.no>
Wed, 6 Oct 2004 13:24:08 +0000 (13:24 +0000)
committerGisle Vanem <gvanem@broadpark.no>
Wed, 6 Oct 2004 13:24:08 +0000 (13:24 +0000)
docs/examples/multi-app.c

index ecb7e38..5383a40 100644 (file)
@@ -98,8 +98,6 @@ int main(int argc, char **argv)
     }
   }
 
-  curl_multi_cleanup(multi_handle);
-
   /* See how the transfers went */
   while ((msg = curl_multi_info_read(multi_handle, &msgs_left))) {
     if (msg->msg == CURLMSG_DONE) {
@@ -120,6 +118,8 @@ int main(int argc, char **argv)
     }
   }
 
+  curl_multi_cleanup(multi_handle);
+
   /* Free the CURL handles */
   for (i=0; i<HANDLECOUNT; i++)
       curl_easy_cleanup(handles[i]);