mirror of
https://github.com/curl/curl.git
synced 2026-07-31 02:48:03 +03:00
as Jeff Pohlmeyer pointed out, first get the multi handle _then_ use it
This commit is contained in:
parent
77516822f6
commit
bac66ec26b
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue