#include "transfer.h"
#include "url.h"
#include "connect.h"
+#include "progress.h"
/* The last #include file should be: */
#ifdef MALLOCDEBUG
}
/* Connect. We get a connection identifier filled in. */
+ Curl_pgrsTime(easy->easy_handle, TIMER_STARTSINGLE);
easy->result = Curl_connect(easy->easy_handle, &easy->easy_conn);
/* after the connect has been sent off, go WAITCONNECT */
}
if(CURLM_STATE_COMPLETED != easy->state) {
- if(CURLE_OK != easy->result)
+ if(CURLE_OK != easy->result) {
/*
* If an error was returned, and we aren't in completed state now,
* then we go to completed and consider this transfer aborted. */
easy->state = CURLM_STATE_COMPLETED;
+ }
else
/* this one still lives! */
(*running_handles)++;