conn->bits.tcpconnect now keeps track of if this connection is connected

or not
This commit is contained in:
Daniel Stenberg
2002-12-13 16:15:19 +00:00
parent 57572e550f
commit b528bde470
3 changed files with 20 additions and 3 deletions

View File

@@ -380,8 +380,8 @@ CURLcode Curl_is_connected(struct connectdata *conn,
return CURLE_OPERATION_TIMEOUTED;
}
}
if(conn->protocol & PROT_FILE) {
/* we are connected, awesome! */
if(conn->bits.tcpconnect) {
/* we are connected already! */
*connected = TRUE;
return CURLE_OK;
}