aboutsummaryrefslogtreecommitdiff
path: root/lib/multi.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2013-08-20 12:27:50 +0200
committerDaniel Stenberg <daniel@haxx.se>2013-08-20 23:13:19 +0200
commit19122c07682c268c2383218f62e09c3d24a41e76 (patch)
tree7ada8e345488863936046a5343e5a83a73c03b30 /lib/multi.c
parentc346c4c8f9503239ad3b5f2ba1cca9a317707e88 (diff)
CURLM_ADDED_ALREADY: new error code
Doing curl_multi_add_handle() on an easy handle that is already added to a multi handle now returns this error code. It previously returned CURLM_BAD_EASY_HANDLE for this condition.
Diffstat (limited to 'lib/multi.c')
-rw-r--r--lib/multi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/multi.c b/lib/multi.c
index aa8eaf06b..93be7700a 100644
--- a/lib/multi.c
+++ b/lib/multi.c
@@ -357,8 +357,7 @@ CURLMcode curl_multi_add_handle(CURLM *multi_handle,
/* Prevent users from adding same easy handle more than once and prevent
adding to more than one multi stack */
if(data->multi)
- /* possibly we should create a new unique error code for this condition */
- return CURLM_BAD_EASY_HANDLE;
+ return CURLM_ADDED_ALREADY;
/* Allocate and initialize timeout list for easy handle */
timeoutlist = Curl_llist_alloc(multi_freetimeout);