diff options
-rw-r--r-- | lib/url.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -2276,10 +2276,11 @@ static CURLcode CreateConnection(struct SessionHandle *data, if(-1 == conn->firstsocket) { /* Connect only if not already connected! */ result = ConnectPlease(conn); + Curl_pgrsTime(data, TIMER_CONNECT); /* connect done, good or bad */ + if(CURLE_OK != result) return result; - Curl_pgrsTime(data, TIMER_CONNECT); /* we're connected */ if(data->set.verbose) verboseconnect(conn); |