return call_multi when we follow a location

This commit is contained in:
Daniel Stenberg 2002-10-18 15:27:49 +00:00
Родитель 45bd009bb1
Коммит 203633d34d
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -430,8 +430,10 @@ CURLMcode curl_multi_perform(CURLM *multi_handle, int *running_handles)
if(easy->easy_conn->newurl) {
easy->result = Curl_follow(easy->easy_handle,
strdup(easy->easy_conn->newurl));
if(CURLE_OK == easy->result)
if(CURLE_OK == easy->result) {
easy->state = CURLM_STATE_CONNECT;
result = CURLM_CALL_MULTI_PERFORM;
}
}
else {
easy->state = CURLM_STATE_DONE;