aboutsummaryrefslogtreecommitdiff
path: root/lib/multi.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-01-10 11:42:20 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-01-10 11:42:20 +0000
commit065e466f1a8b947770562ec98bd10ad3ed143d49 (patch)
tree9c4032b0484d66c3ffc3fe9cb674c411f6d97b17 /lib/multi.c
parent3ac00f32afbab984705e2fdfa6d8ab728113058c (diff)
Use Curl_easy_addmulti() to clear associations from easy handles to multi
handles. Include multi.h to get proto.
Diffstat (limited to 'lib/multi.c')
-rw-r--r--lib/multi.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/multi.c b/lib/multi.c
index 63eb505f5..2822b16a4 100644
--- a/lib/multi.c
+++ b/lib/multi.c
@@ -44,6 +44,7 @@
#include "progress.h"
#include "memory.h"
#include "easy.h"
+#include "multi.h"
/* The last #include file should be: */
#include "memdebug.h"
@@ -210,6 +211,8 @@ CURLMcode curl_multi_remove_handle(CURLM *multi_handle,
/* clear out the usage of the shared DNS cache */
easy->easy_handle->hostcache = NULL;
+ Curl_easy_addmulti(easy->easy_handle, NULL); /* clear the association
+ to this multi handle */
/* make the previous node point to our next */
if(easy->prev)
@@ -610,7 +613,7 @@ CURLMcode curl_multi_cleanup(CURLM *multi_handle)
nexteasy=easy->next;
/* clear out the usage of the shared DNS cache */
easy->easy_handle->hostcache = NULL;
- easy->easy_handle->multi = NULL;
+ Curl_easy_addmulti(easy->easy_handle, NULL); /* clear the association */
if (easy->msg)
free(easy->msg);