mirror of
https://github.com/curl/curl.git
synced 2026-08-26 20:23:32 +03:00
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.
This commit is contained in:
parent
c346c4c8f9
commit
19122c0768
5 changed files with 13 additions and 5 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue