aboutsummaryrefslogtreecommitdiff
path: root/lib/multi.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-08-05 17:04:39 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-08-05 17:04:39 +0000
commit108cb14d1f01deb5e5704c70c0feb8e2fd8d2175 (patch)
tree0e0f8893ce1b7cab404e0ef8e8024a6acfb8ed28 /lib/multi.c
parentb98308b524fd5202e76077de5b1bd3202671acab (diff)
Make SessionHandle keep record if it is used with the multi interface or
the easy interface, it CANNOT be used by a mixture.
Diffstat (limited to 'lib/multi.c')
-rw-r--r--lib/multi.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/multi.c b/lib/multi.c
index d6ede8235..2e6a408b4 100644
--- a/lib/multi.c
+++ b/lib/multi.c
@@ -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: