]> granicus.if.org Git - curl/commitdiff
as Jeff Pohlmeyer pointed out, first get the multi handle _then_ use it
authorDaniel Stenberg <daniel@haxx.se>
Tue, 22 Aug 2006 06:29:21 +0000 (06:29 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 22 Aug 2006 06:29:21 +0000 (06:29 +0000)
hiper/hipev.c

index 050d7333d43d0abdfd4dffb71ac7bf7680a0a871..6087f5b7da41c1e67bef7ef410426dbd4e4fbc07 100644 (file)
@@ -330,12 +330,12 @@ int main(int argc, char **argv)
 
   printf("About to do %d connections\n", num_total);
 
-  /* initialize the timeout event */
-  evtimer_set(&timerevent, timercallback, multi_handle);
-
   /* init the multi stack */
   multi_handle = curl_multi_init();
 
+  /* initialize the timeout event */
+  evtimer_set(&timerevent, timercallback, multi_handle);
+
   for(i=0; i< num_total; i++) {
     CURL *e;