From 575e885db0f3b2c50434f63269438fe21cbbb978 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 30 Mar 2016 00:17:02 +0200 Subject: multi: turn Curl_done into file local multi_done ... as it now is used by multi.c only. --- lib/smtp.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'lib/smtp.c') diff --git a/lib/smtp.c b/lib/smtp.c index 83e51bf80..ed4c046ce 100644 --- a/lib/smtp.c +++ b/lib/smtp.c @@ -1204,10 +1204,6 @@ static CURLcode smtp_done(struct connectdata *conn, CURLcode status, (void)premature; if(!smtp || !pp->conn) - /* When the easy handle is removed from the multi interface while libcurl - is still trying to resolve the host name, the SMTP struct is not yet - initialized. However, the removal action calls Curl_done() which in - turn calls this function, so we simply return success. */ return CURLE_OK; if(status) { @@ -1262,8 +1258,7 @@ static CURLcode smtp_done(struct connectdata *conn, CURLcode status, TODO: when the multi interface is used, this _really_ should be using the smtp_multi_statemach function but we have no general support for - non-blocking DONE operations, not in the multi state machine and with - Curl_done() invokes on several places in the code! + non-blocking DONE operations! */ result = smtp_block_statemach(conn); } -- cgit v1.2.3