Make SessionHandle keep record if it is used with the multi interface or

the easy interface, it CANNOT be used by a mixture.
This commit is contained in:
Daniel Stenberg 2002-08-05 17:04:39 +00:00
parent b98308b524
commit 108cb14d1f
3 changed files with 11 additions and 0 deletions

View file

@ -263,10 +263,13 @@ CURLMcode curl_multi_perform(CURLM *multi_handle, int *running_handles)
case CURLM_STATE_INIT:
/* init this transfer. */
easy->result=Curl_pretransfer(easy->easy_handle);
if(CURLE_OK == easy->result) {
/* after init, go CONNECT */
easy->state = CURLM_STATE_CONNECT;
result = CURLM_CALL_MULTI_PERFORM;
easy->easy_handle->state.used_interface = Curl_if_multi;
}
break;
case CURLM_STATE_CONNECT: